Skip to main content

Model and Taskmodule implementations for PyTorch-IE

Project description

pie-modules

PyTorch Lightning PyTorch-IE

PyPI Tests Codecov pre-commit Black

Model-, taskmodule-, and metric-implementations as well as document processing utilities for PyTorch-IE.

Available models:

Available taskmodules:

Available metrics:

Document processing utilities:

Setup

pip install pie-modules

To install the latest version from GitHub:

pip install git+https://git@github.com/ArneBinder/pie-modules.git

Development

Setup

  1. This project is build with Poetry. See here for installation instructions.
  2. Get the code and switch into the project directory:
    git clone https://github.com/ArneBinder/pie-modules
    cd pie-modules
    
  3. Create a virtual environment and install the dependencies:
    poetry install
    

Finally, to run any of the below commands, you need to activate the virtual environment:

poetry shell

Note: You can also run commands in the virtual environment without activating it first: poetry run <command>.

Code Formatting, Linting and Static Type Checking

pre-commit run -a

Testing

run all tests with coverage:

pytest --cov --cov-report term-missing

Releasing

  1. Create the release branch: git switch --create release main
  2. Increase the version: poetry version <PATCH|MINOR|MAJOR>, e.g. poetry version patch for a patch release. If the release contains new features, or breaking changes, bump the minor version (this project has no main release yet). If the release contains only bugfixes, bump the patch version. See Semantic Versioning for more information.
  3. Commit the changes: git commit --message="release <NEW VERSION>" pyproject.toml, e.g. git commit --message="release 0.13.0" pyproject.toml
  4. Push the changes to GitHub: git push origin release
  5. Create a PR for that release branch on GitHub.
  6. Wait until checks passed successfully.
  7. Merge the PR into the main branch. This triggers the GitHub Action that creates all relevant release artefacts and also uploads them to PyPI.
  8. Cleanup: Delete the release branch. This is important, because otherwise the next release will fail.

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

pie_modules-0.13.4.tar.gz (109.4 kB view details)

Uploaded Source

Built Distribution

pie_modules-0.13.4-py3-none-any.whl (143.2 kB view details)

Uploaded Python 3

File details

Details for the file pie_modules-0.13.4.tar.gz.

File metadata

  • Download URL: pie_modules-0.13.4.tar.gz
  • Upload date:
  • Size: 109.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pie_modules-0.13.4.tar.gz
Algorithm Hash digest
SHA256 83bdba8346fc86269fcb26769a180c3535cbce0ca4b37e370c4fee975deafa20
MD5 ed463fd4bdb6d59d6c2f26fe51d16de2
BLAKE2b-256 161e6fba829b2aa5271a928a3b0b700f4d76716a2e22b4f4bb11c4bc87316a3e

See more details on using hashes here.

File details

Details for the file pie_modules-0.13.4-py3-none-any.whl.

File metadata

  • Download URL: pie_modules-0.13.4-py3-none-any.whl
  • Upload date:
  • Size: 143.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for pie_modules-0.13.4-py3-none-any.whl
Algorithm Hash digest
SHA256 74327eead3f1d3db52c7b1a41c396357db22501f34385f96c5ad1a2405d9a071
MD5 f7a3c05fa3685472d6d947d62612fc9f
BLAKE2b-256 eeb1b393cd1876c45c4f38928b87557e4b3968f7a1679ebcc30cd54318db13b0

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