Docket Analyzer Core Utilities
Project description
Docket Analyzer Core
Core utilities for Docket Analyzer modules
Full documentation available at docs.docketanalyzer.com
Install and Configure
Install docketanalyzer:
pip install `docketanalyzer[all]`
Run the configuration script:
da configure
Load Configured Env
from docketanalyzer import env
print(env.VARIABLE_NAME)
Service Clients
Elasticsearch
from docketanalyzer import load_elastic
es = load_elastic()
print(es.ping())
Postgres
from docketanalyzer_core import load_psql
db = load_psql()
print(db.status())
Redis
from docketanalyzer import load_redis
redis = load_redis()
print(redis.ping())
S3
from docketanalyzer import load_s3
s3 = load_s3()
print(s3.status())
Registry
Example usage:
from docketanalyzer import Registry, SomeBaseClass
class SomeRegistry(Registry):
def find_filter(self, obj):
return (
isinstance(obj, type) and
issubclass(obj, SomeBaseClass) and
obj is not SomeBaseClass
)
some_registry = SomeRegistry()
# Find subclasses of SomeBaseClass in this module
some_registry.find(recurse=True)
# Import these into the current namespace
some_registry.import_registered()
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file docketanalyzer_core-0.1.11.tar.gz.
File metadata
- Download URL: docketanalyzer_core-0.1.11.tar.gz
- Upload date:
- Size: 38.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
631ea93fea82a652c3ed7b099eef1d7effbfac893644144d2fc2821d0fc2fbb2
|
|
| MD5 |
3d62dd86ddb1178526b35a89e0ce53c8
|
|
| BLAKE2b-256 |
652bf4c7ae3baa68c9b3439d13fc422cd4daca28e6d3279c50b14746b14a0d89
|
File details
Details for the file docketanalyzer_core-0.1.11-py3-none-any.whl.
File metadata
- Download URL: docketanalyzer_core-0.1.11-py3-none-any.whl
- Upload date:
- Size: 45.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
49e7c4c87fcf659fbae0173ae65e5ce1b1707faa52472dcb20fb21c00b878842
|
|
| MD5 |
9d0f35093803049a583c8b44bcb118ba
|
|
| BLAKE2b-256 |
a81ad97aaea8366fc689fcd360b62ccf6421299e1578b962cc07cba885ef1778
|