Utilities for lazy Python developers
Project description
plazy
Utilities for lazy Python developers
INSTALLATION
pip install plazy
PLAZY FEATURES
Auto Assign
Assign attributes of class with the passed arguments automatically.
import plazy
class Cat(object):
@plazy.auto_assign
def __init__(self, name, owner='Kyzas'):
pass
if __name__ == "__main__":
my_cat = Cat('Kittie')
print(my_cat.name) # Kittie
print(my_cat.owner) # Kyzas
CONTRIBUTING
- Step 1. Fork on dev branch.
- Step 2. Install pre-commit on the local dev environment.
pip install pre-commit
pre-commit install
- Step 3. Write test case(s) for the new feature or the bug.
- Step 4. Write code to pass the tests.
- Step 5. Make sure that the new code passes all the pre-commmit conditions.
pre-commit run -a
- Step 6. Create pull request.
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
plazy-0.1.0.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for plazy-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b666abee2e496603d0f01156bb4de11f417a16c9b5385258c52973991e16ab5 |
|
MD5 | f466732a827b34863b4fafa8f39c9dac |
|
BLAKE2b-256 | 1956773679c7526075bb6eb786bc6d1631c76e8e4a1fe9223431ceea36bd7a34 |