Skip to main content

Docket Analyzer Core Utilities

Project description

Docs

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docketanalyzer_core-0.1.11.tar.gz (38.8 kB view details)

Uploaded Source

Built Distribution

docketanalyzer_core-0.1.11-py3-none-any.whl (45.9 kB view details)

Uploaded Python 3

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

Hashes for docketanalyzer_core-0.1.11.tar.gz
Algorithm Hash digest
SHA256 631ea93fea82a652c3ed7b099eef1d7effbfac893644144d2fc2821d0fc2fbb2
MD5 3d62dd86ddb1178526b35a89e0ce53c8
BLAKE2b-256 652bf4c7ae3baa68c9b3439d13fc422cd4daca28e6d3279c50b14746b14a0d89

See more details on using hashes here.

File details

Details for the file docketanalyzer_core-0.1.11-py3-none-any.whl.

File metadata

File hashes

Hashes for docketanalyzer_core-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 49e7c4c87fcf659fbae0173ae65e5ce1b1707faa52472dcb20fb21c00b878842
MD5 9d0f35093803049a583c8b44bcb118ba
BLAKE2b-256 a81ad97aaea8366fc689fcd360b62ccf6421299e1578b962cc07cba885ef1778

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page