Skip to main content

ASF Common Python Methods

Project description

asfpy - ASF Infrastructure Common Library for Python functions

PyPI PyPI - Python Versions Unit Tests Apache License

This Python library contains features commonly used at the Apache Software Foundation.

(For asfpy 0.37 and below, look at our old Subversion repository)

Building asfpy package

Prerequisites:

  • poetry: install e.g. with pipx pipx install poetry

Building the package:

$ poetry build

Running the tests:

$ poetry run pytest

Installation

Create and activate a virtual environment and then install asfpy using pip:

$ pip install "asfpy"

Note: Adding [ldap] or [aioldap] extras will install optional dependencies for LDAP support that will require additional system dependencies:

$ pip install "asfpy[aioldap]"

Publishing a new asfpy package

Create an account on https://pypi.org/, then add a token with an "all projects" scope.

Configure your credentials for the pypi repository:

$ poetry config pypi-token.pypi <your-token>

Finally publish to pypi.org:

$ make publish

See this guide for more details on working with PyPi.

Please also create a tag for the release.

Publishing to test.pypi.org

Create an account on https://test.pypi.org/, then add a token with an "all projects" scope.

Add a testpypi repository to your poetry config:

$ poetry config repositories.testpypi https://test.pypi.org/legacy/

Configure your credentials for the testpypi repository:

$ poetry config pypi-token.testpypi <your-token>

Finally publish to test.pypi.org:

$ make publish-test

The package should upload to the test.pypi.org service.

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

asfpy-0.55.tar.gz (29.0 kB view details)

Uploaded Source

Built Distribution

asfpy-0.55-py3-none-any.whl (36.9 kB view details)

Uploaded Python 3

File details

Details for the file asfpy-0.55.tar.gz.

File metadata

  • Download URL: asfpy-0.55.tar.gz
  • Upload date:
  • Size: 29.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Linux/6.11.0-19-generic

File hashes

Hashes for asfpy-0.55.tar.gz
Algorithm Hash digest
SHA256 a9734ca8827076ca4d8a55a44476a1c54a31ffcefd6f3b3dd01694a0d2d77672
MD5 b2a570bd34be3133a34861d056998cf0
BLAKE2b-256 3632bcd5f9d8294f0e09ec192cda42cda32d1b9761674cf94b724671154010bd

See more details on using hashes here.

File details

Details for the file asfpy-0.55-py3-none-any.whl.

File metadata

  • Download URL: asfpy-0.55-py3-none-any.whl
  • Upload date:
  • Size: 36.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.7 Linux/6.11.0-19-generic

File hashes

Hashes for asfpy-0.55-py3-none-any.whl
Algorithm Hash digest
SHA256 93839b861bc4a7c390d7c8baa0ab8d943462121ecc1151d5c781b40e86226627
MD5 7c3c10db5b17dfd7dc692528fb03190b
BLAKE2b-256 1c44f1b3910fd9bfd869567ba4be3a4466d4b503e9b5e884cd9f7b3142497d9a

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