Python package that group a lot of classes and functions that help software development.
Project description
Python Gemstones
Python package that group a lot of classes and functions that help software development.
Requirements
- Python 3.6+
How To Use
To use in your project, install pygemstones
module:
pip install pygemstones
or:
poetry add pygemstones
And before call any pygemstones module, import system boostrap and call init
method:
from pygemstones.system import bootstrap
bootstrap.init()
Modules
There are several implemented modules for you to use:
- io.file
- io.net
- io.pack
- system.bootstrap
- system.platform
- system.runner
- system.settings
- type.list
- type.string
- util.log
- vendor.aws
Development
These are the requirements for local development:
- Python 3.6+
- Poetry (https://python-poetry.org/)
You can install locally:
poetry install
Or can build and generate a package:
poetry build
Tests
poetry run pytest
Coverage Tests
poetry run pytest --cov=pygemstones --cov-report=html tests
Note: see coverage report in htmlcov/index.html
Linters
To run all linters use:
poetry run black --check pygemstones/
poetry run black --check tests/
poetry run mypy --ignore-missing-imports pygemstones/
poetry run mypy --ignore-missing-imports tests/
Build and Publish
To build the package use:
poetry build
Set the token from your PyPI account with:
poetry config pypi-token.pypi [PyPI-Api-Access-Token]
And publish with:
poetry publish --build
Release
To create a release for Github Action publish steps
create a tag and push. Example:
git tag v0.0.1
git push origin v0.0.1
After release action finish, publish the release on Github releases
page and Github Action will run publish steps
automatically.
Project details
Release history Release notifications | RSS feed
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 pygemstones-0.0.10.tar.gz
.
File metadata
- Download URL: pygemstones-0.0.10.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.1 Linux/5.11.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab4eabe7496b1fff9a93854a540c8c42b015eb6b37533e90a387b86c029dc68d |
|
MD5 | c29a307667fa666c0b5dd3f91e82528c |
|
BLAKE2b-256 | 498595aa94ac4bc675ba68fdd90c500212bb16d2de4b3958d94a522ce73d3274 |
File details
Details for the file pygemstones-0.0.10-py3-none-any.whl
.
File metadata
- Download URL: pygemstones-0.0.10-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.10.1 Linux/5.11.0-1025-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e93de76888a13526ff0628a89ee35e0d16acc42d80058bb98bf07868bf4812d2 |
|
MD5 | 32b54e6f2052c142df5fd2da829fd722 |
|
BLAKE2b-256 | 1cd523094433621d4f61d9fc4c2aa3ec15574193cfb1f3d7a88dc0d5fd477efd |