Skip to main content

License CI Tests Coverage Bandit Black Docs Wheel Status PRs welcome

simple converter for pa files vs notebooks

example:

from pytonb import write_notebook, write_script
write_notebook('filename.py')

writes notebook filename.ipynb. optional parameters:

  • save_name, notebook file name
  • use_ast, ignore notebook markers (In[ ]:), create a separate cell for each function
write_script('filename.ipynb')

writes filename.py, including notebook markers (In[ ]:). optional parameters:

  • save_name, py file name
  • overwrite, write over existing py file

example syncing notebook to py file:

from pytonb import sync, sync_folder
sync('filename.ipynb')

sync ipynb file to filename.py. optional parameters:

  • py_path: py file save path
  • delay: delay in s before checking change

example syncing folder to py files:

from pytonb import sync, sync_folder           
sync_folder('folder')

sync ipynb files in folder to corresponding py files. optional parameters:

  • recursion_level: sync ipynb files up to this depth
  • delay: delay in s before checking change

Metadata

Release files for pytonb 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytonb 0.1.2
File Size Uploaded Provenance Actions
pytonb-0.1.2.tar.gz 158.4 kB Without provenance Details for pytonb-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pytonb 0.1.2
File Interpreter ABI Platform Actions
pytonb-0.1.2-py3-none-any.whl Python 3 none any Details for pytonb-0.1.2-py3-none-any.whl

Total release size: 165.6 kB

Release files / pytonb-0.1.2.tar.gz

Download URL pytonb-0.1.2.tar.gz
Size 158.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ae762aaa2068239af4252b5bfb3c2f6562201f1b181f18d0f50bd5c4cbf7a2d4
BLAKE2b-256 checksum
How to use checksums
3bca6af90516feef1dc9f79aa7ace98f26d1e1bc6979d6dbd1c6c036f942792c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pytonb-0.1.2-py3-none-any.whl

Download URL pytonb-0.1.2-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cc11d7f86503f2b807ee603ee2ba4b694275453673ec48eaa92bc57c2b41ad68
BLAKE2b-256 checksum
How to use checksums
1b9b5222a2903c763bf91f14314063352ad6fb57a620f9065c50451cba029c0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for pytonb 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page