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.5.tar.gz (12.9 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.5-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: charz_core-0.1.5.tar.gz
  • Upload date:
  • Size: 12.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for charz_core-0.1.5.tar.gz
Algorithm Hash digest
SHA256 ef429368d8920e47fae28969d4f7108f238fd4039f968d3801a74b7da93f9d0f
MD5 9d7d17f858ef1b0bfd2ded3e689f4ab2
BLAKE2b-256 65b71986d1e91c73b8faf16082382d740be041d56fa5b6e8f4c70cb9c8d24602

See more details on using hashes here.

File details

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

File metadata

  • Download URL: charz_core-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for charz_core-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b70d933daf38b14ab8655d49abd508cbcd6c7dd2d0bccd81201cddde4397342c
MD5 60267a106bf1617301f8831093298e09
BLAKE2b-256 f5be1ef16dfcc1f6ea34a2871dd54b44dcf8a432d6dfe36419973978b62f4898

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