Skip to main content

Calculator Package Demo

Project description

Informational Badges:

PyPI version PyPI - Python Version Tests Linux macOS Intel macOS ARM

Some Linting Badges (Where I could find them):

Ruff Code style: black Checked with mypy Imports: isort Pylint try/except style: tryceratops

calculator_pkg_ex

If you like the repo, it would be awesome if you could add a star to it! It really helps out the visibility. Also for any questions at all we'd love to hear from you at jfuruness@gmail.com

Package Description

Calculator Python Package Example/Template

Usage

from a script:

from calculator_pkg_ex import Calculator
print(Calculator().add(1, 2))

Installation

Install python and pip if you have not already.

Then run:

pip3 install pip --upgrade
pip3 install wheel

For production:

pip3 install calculator_pkg_ex

This will install the package and all of it's python dependencies.

If you want to install the project for development:

git clone https://github.com/jfuruness/calculator_pkg_ex.git
cd calculator_pkg_ex
pip3 install -e ".[test]"
pre-commit install

To test the development package: Testing

Testing

To test the package after installation:

cd calculator_pkg_ex
pytest calculator_pkg_ex
ruff check calculator_pkg_ex
ruff format calculator_pkg_ex
mypy calculator_pkg_ex

If you want to run it across multiple environments:

cd calculator_pkg_ex
tox --skip-missing-interpreters

Development/Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Test it
  4. Run tox
  5. Commit your changes: git commit -am 'Add some feature'
  6. Push to the branch: git push origin my-new-feature
  7. Ensure github actions are passing tests
  8. Email me at jfuruness@gmail.com if it's been a while and I haven't seen it

License

MIT License (see license file)

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

calculator_pkg_ex-0.11.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

calculator_pkg_ex-0.11.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file calculator_pkg_ex-0.11.0.tar.gz.

File metadata

  • Download URL: calculator_pkg_ex-0.11.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for calculator_pkg_ex-0.11.0.tar.gz
Algorithm Hash digest
SHA256 95972f3a8d7911d8d8c11e7f41d061ad530edb4d2ca7b4d8dbc4433e7ffd08c5
MD5 4877749be1b129f5c72e6b8173f032e0
BLAKE2b-256 0e996ea3257a60d243f16ca5a928356682ad9a3baff66b62f51f3a15f599acad

See more details on using hashes here.

File details

Details for the file calculator_pkg_ex-0.11.0-py3-none-any.whl.

File metadata

File hashes

Hashes for calculator_pkg_ex-0.11.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6116449f3dfb03152167694125e7e580611612936f1124094afff81cf43d7a70
MD5 16aa0ac4819f777c7e1a60ec1f1fb41f
BLAKE2b-256 8841e10571f7a850d0b5a0a1f150a0756f0917890cca79ba223d5466baa14a9c

See more details on using hashes here.

Supported by

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