Skip to main content

Python implementation of the Nock 4K Combinator Calculus.

Project description

Pinochle - Core Library

Python implementation of the Nock 4K Combinator Calculus.

Components

Installation

pip install pinochle

Or from source:

git clone https://github.com/sigilante/pinochle.git
cd pinochle/packages/pinochle
pip install .

Usage

from pinochle import nock, parse_noun

# Parse and evaluate Nock expressions
result = nock(42, parse_noun("[0 1]"))
print(result)  # 42

# Increment
result = nock(41, parse_noun("[4 0 1]"))
print(result)  # 42

API Reference

See full documentation in the repository.

License

MIT License

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

pinochle-1.2.1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

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

pinochle-1.2.1-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file pinochle-1.2.1.tar.gz.

File metadata

  • Download URL: pinochle-1.2.1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for pinochle-1.2.1.tar.gz
Algorithm Hash digest
SHA256 b43a065d3c19ed22c03b371bb57a7c758b77a7a1a7d178e515582ad1b6c77ca6
MD5 39a5bcda5c68d1e4da7106abbedfd009
BLAKE2b-256 2aa50ac32abf2ffe38099b38f18133dcf08e92701c4c804658b7e57d54343079

See more details on using hashes here.

File details

Details for the file pinochle-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: pinochle-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for pinochle-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2064267db4340b690f10dc6f086c2921c336a70929b45bdb36d07ae32fac7cd
MD5 44c114f74298b49eebc5bd2dd63a96fb
BLAKE2b-256 ed4f6368777ffcb2e246db6494aad24b44cc8c1e979e71e684cd7eb9852e2ee8

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