Skip to main content

Access Manager for accessing PDAP API

Project description

from pdap_access_manager.models.auth import AuthInfo

Access-Manager

This is a small package that makes it easy to access the PDAP API.

It is utilized in several other PDAP repositories

Usage

Utilizes an aiohttp client session, which can either be passed into the constructor, or automatically generated when using the AccessManager as a context manager.

from pdap_access_manager.access_manager.async_ import AccessManagerAsync
from pdap_access_manager.models.request import RequestInfo
from pdap_access_manager.models.auth import AuthInfo
from pdap_access_manager.enums import RequestType

async def main():
    auth_info = AuthInfo(
        email="email",
        password="password"
    )
    async with AccessManagerAsync(auth_info) as am:
        url = f"{am.data_sources_url}/search/follow"
        await am.make_request(
            RequestInfo(
                url=url,
                type_=RequestType.GET,
                headers=am.jwt_header()
            )
        )

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

pdap_access_manager-0.4.3.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pdap_access_manager-0.4.3-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file pdap_access_manager-0.4.3.tar.gz.

File metadata

  • Download URL: pdap_access_manager-0.4.3.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pdap_access_manager-0.4.3.tar.gz
Algorithm Hash digest
SHA256 24fe43550caa2a4fb0e4ac255d4265bcfd5985f08ff55cc7dd1bc24224d80f08
MD5 921a68c8b66f9f58054401bdf0c3f94b
BLAKE2b-256 928fad75b32cc91673d89510c0adb451027c29b47d09069f02ad920b8a29ff0d

See more details on using hashes here.

Provenance

The following attestation bundles were made for pdap_access_manager-0.4.3.tar.gz:

Publisher: publish-to-pypi.yml on Police-Data-Accessibility-Project/Access-Manager

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pdap_access_manager-0.4.3-py3-none-any.whl.

File metadata

File hashes

Hashes for pdap_access_manager-0.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9d58f4065b9fea38af1fe0a6afc77c9b8030b42f7cf15068edbe7e53fe11f949
MD5 46ca2bf95a48dd5927bb602eda252698
BLAKE2b-256 c1fa52ad971907cc54dee673effdabb6f7ee87d5beb1966bb554aebbf7b9e47e

See more details on using hashes here.

Provenance

The following attestation bundles were made for pdap_access_manager-0.4.3-py3-none-any.whl:

Publisher: publish-to-pypi.yml on Police-Data-Accessibility-Project/Access-Manager

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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