Skip to main content

aresource

pypi python Tests

A Python project for resource management.

Project Structure

src/
  aresource/
tests/

Installation

Use pip to install released version:

pip install aresource

Use Poetry to install local version:

poetry install

Usage

Example of usage. Load config and use it to initialize new session

import asyncio
from collections.abc import AsyncIterator
from contextlib import asynccontextmanager
from io import TextIOBase

from aresource import callback_context_resource, ResourceManager


class Manager(ResourceManager):
    @callback_context_resource
    async def file(self) -> AsyncIterator[TextIOBase]:
        with open("config.txt", "w") as f:
            yield f


async def main() -> None:
    async with Manager() as mng:
        mng.file.write("Hello, World!")


if __name__ == "__main__":
    asyncio.run(main())

Testing

Run tests with:

poetry run pytest

Code Quality

Command to format and lint code:

poetry run ruff format .
poetry run ruff check --fix
poetry run mypy .

License

MIT License

Metadata

Release files for aresource 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aresource 0.1.1
File Size Uploaded Provenance
aresource-0.1.1.tar.gz 3.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for aresource 0.1.1
File Interpreter ABI Platform
aresource-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.3 kB

Release files / aresource-0.1.1.tar.gz

Download URL aresource-0.1.1.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
913bd9a0e336fcb92030440014bc54bd4434b6aa4eebf259e2a186d8be1f972c
BLAKE2b-256 checksum
How to use checksums
c3b043db470c53c92cee889aa68f70ac24f40ee06654bd52a895e775bc15a1d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 25, 2026.

Transparency log

Release files / aresource-0.1.1-py3-none-any.whl

Download URL aresource-0.1.1-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
23f5e229a54a52f107dc1af12465db1cb47f7d32aebd6bd10af36bde49f6d3d1
BLAKE2b-256 checksum
How to use checksums
29cbd1c5d9a4db48fbd7a74112ced92c44adb9ce9ffbb1d8441eb58d2764c638
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 25, 2026.

Transparency log

Security for aresource 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aresource-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page