Skip to main content

Common utilities for Hezor projects

Project description

Hezor Common

Common utilities for Hezor projects.

Installation

pip install hezor-common

Usage

from hezor_common import hello

print(hello())

Development

Setup

# Install uv if not already installed
curl -LsSf https://astral.sh/uv/install.sh | sh

# Create virtual environment and install dependencies
uv sync

Quick Commands (using Makefile)

# Show all available commands
make help

# Install dependencies
make install

# Build the package
make build

# Publish to TestPyPI (recommended for testing)
make publish-test

# Publish to PyPI (production)
make publish

# Clean build artifacts
make clean

Manual Build and Publish

Building

# Build the package
uv build

# Or use the build script
./scripts/build.sh

Publishing to PyPI

Before publishing, you need to:

  1. Register on PyPI/TestPyPI:

  2. Configure credentials (recommended - using API tokens):

    # Create ~/.pypirc file
    cat > ~/.pypirc << EOF
    [distutils]
    index-servers =
        pypi
        testpypi
    
    [pypi]
    username = __token__
    password = pypi-your-api-token-here
    
    [testpypi]
    username = __token__
    password = pypi-your-test-api-token-here
    EOF
    
    chmod 600 ~/.pypirc
    
  3. Publish:

    # Publish to TestPyPI first (recommended)
    ./scripts/publish.sh --test
    # Or: make publish-test
    
    # After testing, publish to PyPI
    ./scripts/publish.sh
    # Or: make publish
    

Project Structure

hezor_common/
├── src/
│   └── hezor_common/
│       ├── __init__.py
│       └── py.typed
├── scripts/
│   ├── build.sh
│   ├── publish.sh
│   └── build-and-publish.sh
├── pyproject.toml
├── README.md
├── LICENSE
├── MANIFEST.in
├── Makefile
└── .gitignore

License

MIT License - see LICENSE file for details.

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

hezor_common-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

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

hezor_common-0.1.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hezor_common-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for hezor_common-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cec98fc08eb9e3b970a6430d8c2c0e1726dfa5ab2173ea89e8366cdced7c2659
MD5 b3277b804f823b82a5ee9df1afbabfbd
BLAKE2b-256 e90acc7db5497e1fa1b8a91ef686abd66746311554e473cda293768ca14b264c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hezor_common-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.12

File hashes

Hashes for hezor_common-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3cb163140ebdbc844dd6c0732ea8ebcfe8bf4076240c1d4842a40086758701a0
MD5 b13f4baad5a3a9ea68829fb4efc2e1e2
BLAKE2b-256 f41aa613f1664c1b05731b1d7d312ac7c87919440fbae13b67962ab3d4767dfe

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