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

charz-core follows SemVer, like specified in The Cargo Book.

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.2.tar.gz (18.3 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.2-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for charz_core-0.1.2.tar.gz
Algorithm Hash digest
SHA256 6454b42505bf4ee6285853bed96fd35010446468840ea15b930286f14f266741
MD5 d90d2acf85128eb1ee21595569eed98d
BLAKE2b-256 015018168870202887a18a5974d83dd6904b69a60d85a620bf3b036e79e48c1c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for charz_core-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e8d370140a6d9b48926ad21fde2e0a1d02a0cf14b06925d09ba4e3a9f738c275
MD5 b9b8f29f95ef3ea3a7887cbf64f2b030
BLAKE2b-256 b80d4a8545f522019802f8d078107c7e86671c4c0f7ca91d9b894aaaa7359be1

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