Skip to main content

simple-bert-pytorch

Project description

simple-bert-pytorch

A simple template for Python projects, with CI/CD configured through GitHub Actions. Compatible with any virtual environment manager (e.g. venv, pyenv, poetry, conda).

Usage

  1. Create a new repository, using this one as a template.

  2. Run the templatize script:

    ./templatize
    

    This updates placeholders like simple-bert-pytorch, so everything is configured with your username, repo name, email, etc.

  3. Commit and push the changes.

    git add .
    git commit -m "Templatize"
    git push
    
  4. (Probably) delete this section of the README.

Install

pip install "simple-bert-pytorch @ git+ssh://git@github.com/fkodom/simple-bert-pytorch.git"

# Install all dev dependencies (tests etc.)
pip install "simple-bert-pytorch[test] @ git+ssh://git@github.com/fkodom/simple-bert-pytorch.git"

# Setup pre-commit hooks
pre-commit install

Tooling

Tool Description Runs on
black Code formatter - git commit (through pre-commit)
- git push
- pull requests
ruff Code linter - git commit (through pre-commit)
- git push
- pull requests
pytest Unit testing framework - git push
- pull requests
mypy Static type checker - git push
- pull requests
pre-commit Pre-commit hooks - git commit
twine $\dagger$ PyPI package uploader - New release (git tag)

$\dagger$ Requires enabling the publish.yaml workflow. To activate, move the file from .github/disabled-workflows/publish.yaml.disabled to .github/workflows/publish.yaml, and set a valid PyPI token as PYPI_API_TOKEN in the repo secrets.

Then tag a new release of this repo, and GHA will automatically build and publish a Python wheel (.whl) to PyPI.

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

simple_bert_pytorch-0.1.0.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

simple_bert_pytorch-0.1.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file simple_bert_pytorch-0.1.0.tar.gz.

File metadata

  • Download URL: simple_bert_pytorch-0.1.0.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.6

File hashes

Hashes for simple_bert_pytorch-0.1.0.tar.gz
Algorithm Hash digest
SHA256 2fc3e9c74aaf6a4fe630a40f268122be4798e78c50754ff851771c7e3ccb24f2
MD5 5cfb65339bafd8d4cdfd55a4b2e9ec6d
BLAKE2b-256 0c77c26a0edb9d35160ba79333192a472030f30ae72dfb8be500108fc8870352

See more details on using hashes here.

File details

Details for the file simple_bert_pytorch-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_bert_pytorch-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad4d436b17bbc687a6b6e6ebfb44d153248587f9cb7d2ea9e9e712dfc9e617a0
MD5 de1aeb92c954f3a6a8b19e0348c7599c
BLAKE2b-256 8cca9fc9cb5fec3befd4f5d4209a7999e4dfaf6d1324cc7ec170353c65e23ce0

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