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.0.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.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wpyc-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 f7e093949e5e971749d999f85fe85870b324f4be1f8968980f09b3f6507a3b8a
MD5 d8d9a393c98219f8e03f83f80a530011
BLAKE2b-256 1eb8e3d64f1c0c42ca07cfc83bbecd09c2d5836c4b50982cfc32e6d8ef1ed3ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wpyc-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f66261c2779052139286ccb1c8fcfb646e9f8431b6d74b9473aa322d96d1311a
MD5 27a2c8ae70abf39f09763f885ffb318b
BLAKE2b-256 7592ddd540cf4c2e9a520843fcb38354defe088998c933c866e596d8f9df036b

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