A simple and straight-forward Python module for creating context-dependent proxy objects.
Project description
proxyvars
A simple and straight-forward Python module for creating context-dependent proxy objects.
As for now, the documentation is mostly in the codebase (check relevant docstrings of proxy()
, const_proxy()
, lookup_proxy()
, proxy_field_accessor()
, proxy_item_accessor()
and proxy_attribute_accessor()
for more information).
Installation
If you want to…
…use this tool in your project 💻
You might simply install it with pip:
pip install proxyvars
If you use Poetry, then run:
poetry add proxyvars
…contribute to proxyvars 🚀
Happy to accept contributions!
[!Note] If you use Windows, it is highly recommended to complete the installation in the way presented below through WSL2.
First, install Poetry.
Poetry is an amazing tool for managing dependencies & virtual environments, building packages and publishing them.
pipx install poetry
If you encounter any problems, refer to the official documentation for the most up-to-date installation instructions.
Be sure to have Python 3.8 installed—if you use pyenv, simply run:
pyenv install 3.8
Then, run:
git clone https://github.com/bswck/proxyvars path/to/proxyvars
cd path/to/proxyvars
poetry env use $(cat .python-version)
poetry install
poetry shell
pre-commit install --hook-type pre-commit --hook-type pre-push
Legal info
© Copyright by Bartosz Sławecki (@bswck).
This software is licensed under the MIT License.
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
Built Distribution
File details
Details for the file proxyvars-0.9.0.tar.gz
.
File metadata
- Download URL: proxyvars-0.9.0.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e19d36f7233d1fb851613819c6bbc17958c2b249a40c92209f6e88cd8c8fa48 |
|
MD5 | 4d2e7154bd81c9d868398ea557253c38 |
|
BLAKE2b-256 | 7d626abd9ae9da1fa2afd90f4f5f645c66e6eeb595d8e489eef45b7506a4399d |
File details
Details for the file proxyvars-0.9.0-py3-none-any.whl
.
File metadata
- Download URL: proxyvars-0.9.0-py3-none-any.whl
- Upload date:
- Size: 7.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b068363bce57bd89bdd9b0b4dec2bac98d29a67612bcc717b976b69d2c38d8a5 |
|
MD5 | 01a84faf405c55046900cfcb3ddf9230 |
|
BLAKE2b-256 | bc59e9b5db175b79aafe4381d9bace4f8ad3f7ce4ddc3fae2986c59b3df0da59 |