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
- ONT: Table for ONTs info
- SUBSCRIPTION: Table for Service subscriptions
- RADCHECK: Table for radius radcheck
- RADUSERGROUP: Table for radius user group
- RADACCT: Radius accounting table. Available only for postgres
Metadata
Release files for fibrenest-db-models 21.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fibrenest_db_models-21.11.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fibrenest_db_models-21.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.7 kB
Release files / fibrenest_db_models-21.11.tar.gz
| Download URL | fibrenest_db_models-21.11.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8da448166d32246fc9519632fe7dfc91afb74cb5753923ed9337669db4eeb929
|
|
BLAKE2b-256 checksum How to use checksums |
f3c30024a68f906c24d1946b276522d59d9086a37ac642623377e75c15d8c68f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
|
Release files / fibrenest_db_models-21.11-py3-none-any.whl
| Download URL | fibrenest_db_models-21.11-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
974dac8dd4ef4cf93777d63df24f26ad4e421fe894b807496dacc4d3ca77e5bb
|
|
BLAKE2b-256 checksum How to use checksums |
4eb44cc5cb23113560499fc4286be6d911a9934a240b12b3f81ccad090dac1b0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12
|