Skip to main content

Core logic for charz

Project description

Charz Core

Core logic for charz

Installation

Install using either pip or rye:

pip install charz-core
rye add charz-core

Rational

Since core logic of charz was needed in charz-gl and for making servers, I found it fitting to split that core logic into this package, charz-core.

Includes

  • Annotations
    • Self (from standard typing or from package typing-extensions)
  • Math (from package linflex)
    • lerp
    • sign
    • clamp
    • move_toward
    • Vec2
    • Vec2i
    • Vec3
  • Framework
    • Engine
    • Clock
    • Screen
    • Scene
  • Decorators
    • group
  • Enums
    • Group
  • Components
    • TransformComponent
  • Nodes
    • Node
    • Node2D
    • Camera

Regarding testing

Tests for charz-core are currently manual and only somewhat implemented. The plan is to use pytest, however, it's hard to make work since charz-core is meant for long-running tasks.

Versioning

This project will use semantic versioning after reaching release 0.1.0. Consider any dev increment to be a breaking change. It is adviced to pin charz-core using == in your pyproject.toml, until release 0.1.0.

Notes

  • Cannot handle default scene functionality from Engine subclass, while using Scene subclasses

License

MIT

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

charz_core-0.1.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

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

charz_core-0.1.0-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: charz_core-0.1.0.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.2

File hashes

Hashes for charz_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 17a3c3223b3ce81d46b5a290a026f22e1f6008adf5235c6869cf6f96f0ed7b0b
MD5 7c15397da6acb106e74a6a1be6d2faa3
BLAKE2b-256 5f017f72096894931a342bbab9b1e4cb6af20c3f6bc7579cbf5553ae9d6336b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: charz_core-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.2

File hashes

Hashes for charz_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b335f23a90cfd81642a98e33e68d0c451847cb82c936ae8e3b2b95aef633f2b1
MD5 b5e0ffdec59e104022aa2a5b213971fd
BLAKE2b-256 c1bbe99bdfba4ba686e31750739cf5195152c1e4fa1445261b3f3e8d67386746

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