Skip to main content

Dynamic execution and code manipulation utilities for Python

Project description

pydynamix

A powerful dynamic execution and code manipulation library.

This module provides advanced tools for dynamic code execution, variable management, and metaprogramming capabilities in Python. It enables secret variable storage, dynamic execution with result capture, scope manipulation, lambda creation, and class extension.

Key Features: - Secret variable storage and retrieval (setvar, getvar, delvar, clearvars) - Dynamic code execution with results (resulted_execution) - Scope context management (scope_context) - Anonymous function generation (GreatLambda) - Class extension and composition (extend) - Module export control (export) - Custom object construction decorator (constructor)

Classes:\n ReadOnly: Contains nested type-only classes for typing purposes. - ExecutionResults: Represents results from dynamic code execution. - Scoper: Provides scope attribute access and management. - ScopeContext: Context manager for scope attribute revelation. GreatLambda: Builder for creating advanced anonymous functions. constructor: Decorator for constructing objects via function definitions.

Functions: setvar: Store a variable secretly. getvar: Retrieve a secretly stored variable with optional default. delvar: Delete a specific secret variable by name. clearvars: Clear all secret variables. takevar: Retrieve a secret variable or raise KeyError if not found. resulted_execution: Execute code dynamically and capture execution results. extend: Extend a class with attributes from another class. scope_context: Create a context manager for accessing object attributes. export: Define which variables a module should export.

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

pydynamix-0.1.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

pydynamix-0.1.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pydynamix-0.1.0.tar.gz
Algorithm Hash digest
SHA256 357dfa30cca30baeff937dc189ed463f65bdf8ac4231d8ffda57149d37c98178
MD5 d39669831390cf580dff2de184385136
BLAKE2b-256 0e844a03a1ead19609f8431b8c1b6fd9dfdd563d0a5468b621b332b8debc9ebf

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pydynamix-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b077e0af3304fb08bca72edbfbd67137703fd1ec9364669a6291e266e0d040bf
MD5 04b02fa71f02009532fe285410a59071
BLAKE2b-256 3b6f1137128e9eda55ca7f3ab613269a5a21529f31ea09a42c5db1d216faae98

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