Access the IETF Data Tracker and RFC Index
Project description
ietfdata - Access the IETF Datatracker and related resources
This project contains Python 3 libraries to interact with, and access, the IETF datatracker, RFC index, and related resources.
Getting started
The project uses Pipenv for dependency management. To begin, run:
pipenv install --dev -e .
to create a Python virtual environment with appropriate packages install. Then, run:
pipenv shell
to start the virtual environment, within which you can run the scripts.
Once the virtual environment is started, running:
python3 tests/test_datatracker.py
will run the test suite for the datatracker module. Running:
python3 tests/test_rfcindex.py
Will test the rfcindex module.
Caching
The ietfdata library can use a MongoDB instance as a cache. Using a cache reduces the number of requests that are made directly to the Datatracker, improving performance, and reducing the impact on the IETF's infrastructure. While using a cache is optional when accessing the Datatracker, it is required when accessing the mail archive.
The hostname, port, username, and password for the MongoDB instance that is to
be used as the cache can be set when instantiated the DataTracker
or
MailArchive
objects. Alternatively, the following environment variables can be
set:
IETFDATA_CACHE_HOST
(defaults tolocalhost
when accessing the mail archive)IETFDATA_CACHE_PORT
(defaults to27017
)IETFDATA_CACHE_USER
(optional)IETFDATA_CACHE_PORT
(optional)
Release Process
- Edit CHANGELOG.md and ensure up-to-date
- Edit setup.py to ensure the correct version number is present
- Edit pyproject.toml to ensure the correct version number is present
- Edit ietfdata/datatracker.py to fix version number in DataTracker::ua
- Run
make test
to run the test suite. If any tests fail, fix then restart the release process - Commit changes and push to GitHub
- Check that the GitHub Continuous Integration run succeeds, and fix any problems (this runs with a fresh cache, so can sometimes catch problems that aren't found by local tests).
- Run
python3 setup.py sdist bdist_wheel
to prepare the package - Run
python3 -m twine upload dist/*
to upload the package - Commit the packages files in
dist/*
push to GitHub - Tag the release in GitHub
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ietfdata-0.8.1.tar.gz
.
File metadata
- Download URL: ietfdata-0.8.1.tar.gz
- Upload date:
- Size: 86.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2c9c13d60cf0d1661fa28a257e062b13f11a693ea5852530fedb30a20ab310f |
|
MD5 | 327dec805aa18c5c40decbc693df9939 |
|
BLAKE2b-256 | b2becca690d7f5162954e6b67ce9466f5bb5007b98aabbebb4c1dc64e03a6346 |
File details
Details for the file ietfdata-0.8.1-py3-none-any.whl
.
File metadata
- Download URL: ietfdata-0.8.1-py3-none-any.whl
- Upload date:
- Size: 121.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e735ebee10d40cac04f632031f1fe46d5be30bab4f9cbc265fe1682b12de456 |
|
MD5 | dec1204ecda814b719b70e09945b0803 |
|
BLAKE2b-256 | 999fb153fb890aff4b13696f6079761118ddaeb36734038d687f3145780876b2 |