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.11.tar.gz (4.1 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.11-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for fibrenest_db_models-20.11.tar.gz
Algorithm Hash digest
SHA256 328a5667c0542396d97fb75261caaac71e922d1941bb314f527b6032f32891c9
MD5 fc85b41ac03886b86c2c1519059e0529
BLAKE2b-256 aa69754e6428e50c63551cd61f06bab5c9d6e96862640d9c9fc284fab4c2c965

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for fibrenest_db_models-20.11-py3-none-any.whl
Algorithm Hash digest
SHA256 2320e596cc80f624437ff86e07576d082245af41e94740e2c98eef35c547c491
MD5 d161c65e7738b2635644e4b4c4aa01ac
BLAKE2b-256 29b00dc023d0e332fbf8610fad3292c41300c014c68c22319dd3e16e7ab5dd47

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