Skip to main content

Python package that group a lot of classes and functions that help software development.

Project description

PyGemstones Logo

Python Gemstones

Build Status Coverage Status

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:

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygemstones-0.0.9.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

pygemstones-0.0.9-py3-none-any.whl (14.9 kB view details)

Uploaded Python 3

File details

Details for the file pygemstones-0.0.9.tar.gz.

File metadata

  • Download URL: pygemstones-0.0.9.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

Hashes for pygemstones-0.0.9.tar.gz
Algorithm Hash digest
SHA256 a95be319d1e3f97297d7b47fc9800ea77eb0d55443a01d69369b6b9d036c1c69
MD5 a4f23be094ac9a25ccc24a2e5cfe920a
BLAKE2b-256 a1d7fd4b59cfc8178fb6cbbd2653c4a3fcb6cfa984f2a0c9eb1dfa5edadf76f6

See more details on using hashes here.

File details

Details for the file pygemstones-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: pygemstones-0.0.9-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

Hashes for pygemstones-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 e200f7f10b92514548c62ab9372fa3cdec89d7573178954627dabe8767f08d59
MD5 28d27b0f9c11e3fee55177ad374da0a1
BLAKE2b-256 04535fc5a3d3b01e7c6fb6cf572fd50715071fcce429d257f09b1a06504f4d8a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page