Skip to main content

DB schema and sqlalchemy db models for fibrenest

Project description

fibrenest_db_models

This is the DB schema and sqlalchemy db models for fibrenest

Usage

You would want to install this module in your project and then import the needed db model.
There is separate model if the backend DB is postgres.

DB Models for OLD Mysql DB are in old.py

Installation

pip install fibrenest-db-models

Example import for postgres

from fibrenest_db_models.postgres import *

Example import for all other DBs

from fibrenest_db_models.all import *

Creating the DB and tables

If the DB is not created, then you would need to first create the DB. Use sqlalchemy-utils for this.

After the DB is created, you can connect to this DB and create tables. Detailed instructions here

engine = create_engine('sqlite:///test.db')
Base.metadata.create_all(engine)

Models

  1. ONT: Table for ONTs info
  2. SUBSCRIPTION: Table for Service subscriptions
  3. RADCHECK: Table for radius radcheck
  4. RADUSERGROUP: Table for radius user group
  5. RADACCT: Radius accounting table. Available only for postgres

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fibrenest_db_models-20.12.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fibrenest_db_models-20.12-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file fibrenest_db_models-20.12.tar.gz.

File metadata

  • Download URL: fibrenest_db_models-20.12.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.9

File hashes

Hashes for fibrenest_db_models-20.12.tar.gz
Algorithm Hash digest
SHA256 a8fca60a915a037927d6729e032f2a52d8788be80fb2e96d3c24190d6219a146
MD5 6b7b37ecd69ad64f9c4311a28cf519e9
BLAKE2b-256 9e9f7d38ff41cdf400354763c35c065d4931f0abdf580fe6b82ef398fb24a1f4

See more details on using hashes here.

File details

Details for the file fibrenest_db_models-20.12-py3-none-any.whl.

File metadata

  • Download URL: fibrenest_db_models-20.12-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.9

File hashes

Hashes for fibrenest_db_models-20.12-py3-none-any.whl
Algorithm Hash digest
SHA256 85132d29e8d183c3b6209a92fc33a5e9252c5a7dff0de2ffec2c054e0f6fdec8
MD5 66e73f06dd2b35faf309f7d6d734abcb
BLAKE2b-256 3664d133712156009bd31f90390f8088f65486d9328f72ed597872bcfb6ee20a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page