Skip to main content

No project description provided

Project description

finch-tensor-python

This is the beginnings of a sparse tensor library for Python, backed by the Finch.jl tensor compiler.

Source

The source code for finch-tensor is available on GitHub at https://github.com/finch-tensor/finch-tensor-python

Installation

finch-tensor is available on PyPi, and can be installed with pip:

pip install finch-tensor

Contributing

Packaging

Finch uses poetry for packaging.

To install for development, clone the repository and run:

poetry install --with test

to install the current project and dev dependencies.

Publishing

The "Publish" GitHub Action is a manual workflow for publishing Python packages to PyPI using Poetry. It handles the version management based on the pyproject.toml file and automates tagging and creating GitHub releases.

Version Update

Before initiating the "Publish" action, update the package's version number in pyproject.toml. Follow semantic versioning guidelines for this update.

Triggering the Action

The action is triggered manually. Once the version in pyproject.toml is updated, manually start the "Publish" action from the GitHub repository's Actions tab.

Process and Outcomes

On successful execution, the action publishes the package to PyPI and tags the release in the GitHub repository. If the version number is not updated, the action fails to publish to PyPI, and no tagging or release is done. In case of failure, correct the version number and rerun the action.

Best Practices

  • Ensure the version number in pyproject.toml is updated before triggering the action.
  • Regularly check action logs for successful completion or to identify issues.

Pre-commit hooks

To add pre-commit hooks, run:

poetry run pre-commit install

Testing

Finch uses pytest for testing. To run the tests:

poetry run pytest

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

finch_tensor-0.1.35.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

finch_tensor-0.1.35-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file finch_tensor-0.1.35.tar.gz.

File metadata

  • Download URL: finch_tensor-0.1.35.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.0 Linux/6.5.0-1025-azure

File hashes

Hashes for finch_tensor-0.1.35.tar.gz
Algorithm Hash digest
SHA256 f9186a4f8dbe008d5e47eac7d254b698ec193bf578aa254cbfce89d51e5f1566
MD5 0d15c35393bcedb53b3bb3dc11dd584e
BLAKE2b-256 1a10786180c82bdaef26238d9f49ea7e3a84a533039f1f502da8fcd37fc41e24

See more details on using hashes here.

File details

Details for the file finch_tensor-0.1.35-py3-none-any.whl.

File metadata

  • Download URL: finch_tensor-0.1.35-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.11.0 Linux/6.5.0-1025-azure

File hashes

Hashes for finch_tensor-0.1.35-py3-none-any.whl
Algorithm Hash digest
SHA256 bb18de62240175a19ae44d67a75586383f21a7285f6401413f1f255ac878d81d
MD5 c61835d14de320cffee0f391773605a6
BLAKE2b-256 c612ea56c82ca35a78feda47157d7a1b356ba32910efd9fbeea5048d9dc32afe

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