Skip to main content

Dysco

Dysco - Dynamic Scoping in Python Tweet Share on Facebook Share on Reddit Share on Hacker News

Build Status Coverage License PyPI Version

Installation | Development | Contributing

Dysco is a lightweight Python library that brings dynamic scoping capabilities to Python in a highly configurable way.

Installation

Dysco can be installed from pypy using pip or any compatible Python package manager.

# Installation with pip.
pip install dysco

# Or, installation with poetry.
poetry add dysco

Development

To install the dependencies locally, you need poetry to be installed. You can then run

# This is only required if you're not using poetry v1.0.0 or greater.
# It tells poetry to place the virtual environment in `.venv`.
poetry config settings.virtualenvs.in-project true

# Install all of the dependencies.
poetry install

to install the project dependencies.

The library is tested against Python versions 3.7 and 3.8. These are most easily installed using pyenv with the following command.

# Install the supported Python versions.
pyenv install --skip-existing 3.7.5
pyenv install --skip-existing 3.8.0

Testing, linting, and document generation can then be run via tox. The bare tox command will run everything in all environments, or you can break it down by Python version and task. For example, you could run the individual Python 3.8 tasks manually by running the following.

# Install the project dependencies in `.tox/py38/`.
tox -e py38-init

# Run black, flake8, isort, and mypy.
tox -e py38-lint

# Run the tests and generate a coverage report.
tox -e py38-test --coverage

## Build the project documentation.
tox -e py38-docs

Deployment

You first need to configure your credentials with poetry.

poetry config http-basic.pypi intoli <pypi-password>

You can then use invoke to bump the version number, commit the changes, tag the version, and deploy to pypi.

# Bumps the patch version and deploys the package.
# Valid options are major, minor, and patch.
invoke bump patch

Contributing

Contributions are welcome, but please follow these contributor guidelines outlined in CONTRIBUTING.md.

License

Exodus is licensed under a BSD 2-Clause License and is copyright Intoli, LLC.

Metadata

Release files for dysco 0.0.8

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

Source distribution (sdist)

Source distribution for dysco 0.0.8
File Size Uploaded Provenance Actions
dysco-0.0.8.tar.gz 6.5 kB Without provenance Details for dysco-0.0.8.tar.gz

Built distribution (wheel)

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

Total release size: 13.8 kB

Release files / dysco-0.0.8.tar.gz

Download URL dysco-0.0.8.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bef8241c9d9834e0cd4caa715c7600dc5f0918ac9c56aad2488457491b406286
BLAKE2b-256 checksum
How to use checksums
5e8153790055320d6f1ac644a8bdccfeec7229f5a70aaa022806cc37e3e268c1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0b4 CPython/3.8.0 Linux/5.3.5-arch1-1-ARCH

Release files / dysco-0.0.8-py3-none-any.whl

Download URL dysco-0.0.8-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
adf9c9d3eebd3961edb10e5e842364622f13f7be2de4da14017b9f1ec617713b
BLAKE2b-256 checksum
How to use checksums
6eda297f4d76e10ae68db0c5fed69685abd71e637a6d32032a1621946614d412
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.0b4 CPython/3.8.0 Linux/5.3.5-arch1-1-ARCH

Security for dysco 0.0.8

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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