Skip to main content

Write Python code objects to .pyc files

Project description

WPYC

Write Python code object to .pyc file.

from wpyc import write_pyc

code = compile(f"print('Hello, World!')", "<string>", "exec")

code_bytes = marshal.dumps(code)

write_pyc(code_bytes, "output.pyc")

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

wpyc-0.1.1.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

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

wpyc-0.1.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file wpyc-0.1.1.tar.gz.

File metadata

  • Download URL: wpyc-0.1.1.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.4

File hashes

Hashes for wpyc-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8096b725e50d85632e4ae1b63674d3f6c1caacccd96952b7db04ea143062a93d
MD5 28acdbda7119c89a6a9f78df5979605d
BLAKE2b-256 4a49d458fc3833f8460ac22057c69e0006bfd05c843220fe565ef91e7513fbca

See more details on using hashes here.

File details

Details for the file wpyc-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: wpyc-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.4

File hashes

Hashes for wpyc-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c889151d8a1625674c7e6ea5cddd78f9a81b9305e39a469fc57514beb83b45c5
MD5 0585b46876daa547835db11dbaaad267
BLAKE2b-256 7ebc6487f3d461b283268c3042f6931d6a2b4fd26e0191507611116ca7d440d2

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