-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add python 3.11 support refactor of sync and fetch logic to simplify and modernize approach support for fetching data from peeringdb cache servers support for quickly setting a local snapshot of peeringdb server via the `peeringdb server` commands remove python 3.7 support remove django 2.2 support remove django 3.0 support
- Loading branch information
Showing
31 changed files
with
1,225 additions
and
1,481 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
# PeeringDB Client Configuration | ||
|
||
This document describes the environment variables used to configure the PeeringDB client. | ||
|
||
## Sync Configuration | ||
|
||
- **PDB_SYNC_URL**: The main URL for syncing with PeeringDB. Default is `https://www.peeringdb.com/api`. | ||
- **PDB_SYNC_CACHE_URL**: The cache URL for syncing with PeeringDB. Default is `https://public.peeringdb.com`. | ||
- **PDB_SYNC_CACHE_DIR**: The directory for caching PeeringDB data. Default is `~/.cache/peeringdb`. | ||
- **PDB_SYNC_API_KEY**: The API key for authentication. No default value. | ||
- **PDB_SYNC_USER**: The username for authentication. No default value. | ||
- **PDB_SYNC_PASSWORD**: The password for authentication. No default value. | ||
- **PDB_SYNC_STRIP_TZ**: Strip timezone information (1 for true, 0 for false). Default is `1`. | ||
- **PDB_SYNC_ONLY**: Comma-separated list of data to sync. Default is all data (empty list). | ||
- **PDB_SYNC_TIMEOUT**: The timeout for syncing operations in seconds. Default is `0` (no timeout). | ||
|
||
## ORM Configuration | ||
|
||
### Database Configuration | ||
|
||
- **PDB_ORM_DB_ENGINE**: The database engine to use. Default is `sqlite3`. | ||
- **PDB_ORM_DB_NAME**: The name of the database. Default is `peeringdb.sqlite3`. | ||
- **PDB_ORM_DB_HOST**: The host of the database. No default value. | ||
- **PDB_ORM_DB_PORT**: The port of the database. Default is `0`. | ||
- **PDB_ORM_DB_USER**: The username for database authentication. No default value. | ||
- **PDB_ORM_DB_PASSWORD**: The password for database authentication. No default value. | ||
|
||
### General ORM Configuration | ||
|
||
- **PDB_ORM_BACKEND**: The backend to use for the ORM. Default is `django_peeringdb`. |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,18 +10,18 @@ readme = "README.md" | |
repository = "https://github.com/peeringdb/peeringdb-py" | ||
authors = [ "PeeringDB <[email protected]>",] | ||
license = "Apache-2.0" | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Framework :: Django :: 3.2", | ||
"Framework :: Django :: 4.2", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: System Administrators", | ||
"Intended Audience :: Telecommunications Industry", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
"Framework :: Django :: 3.2", | ||
"Framework :: Django :: 4.2", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: System Administrators", | ||
"Intended Audience :: Telecommunications Industry", | ||
"License :: OSI Approved :: Apache Software License", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Topic :: Software Development :: Libraries :: Python Modules", | ||
"Topic :: Internet" | ||
] | ||
|
@@ -41,12 +41,14 @@ python = "^3.8" | |
confu = "^1" | ||
munge = { extras = ["tomlkit", "yaml"], version = "^1.2.0" } | ||
"twentyc.rpc" = "^1" | ||
pyyaml = "^6.0.1" | ||
httpx = ">=0.24.1" | ||
|
||
[tool.poetry.dev-dependencies] | ||
|
||
# testing | ||
django_peeringdb = "^3.1.0" | ||
django = "~4.2" | ||
django_peeringdb = "^3.0.0" | ||
|
||
pytest = "^6.0.1" | ||
pytest-cov = "*" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.