Skip to main content

pytakeout

https://github.com/idlesign/pytakeout

release lic ci coverage health

Description

Simplifies Python code extraction

With this you can easily:

  • extract function/method/class source code;

  • perform basic code transformations;

  • save code into a file.

Sample

from pytakeout import extract_code, code_to_file


def func_to_extract():
    # This function needs to be extracted.
    return True


# Extract code as a string.
code = extract_code(func_to_extract)

# Save it into a temporary file.
tmp_code_file = code_to_file(code)

Metadata

Release files for pytakeout 0.1.0

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

Source distribution (sdist)

Source distribution for pytakeout 0.1.0
File Size Uploaded
pytakeout-0.1.0.tar.gz 9.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytakeout 0.1.0
File Interpreter ABI Platform
pytakeout-0.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 14.8 kB

Release files / pytakeout-0.1.0.tar.gz

Download URL pytakeout-0.1.0.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
b983960c32152b67e768c57cea9e5613f54ee854a287679edd31b4a2864dfa61
BLAKE2b-256 checksum
How to use checksums
f2ac8686d50bccbfda187eafd38035c1c123291aacb8e555661bbfb7b2d4b126
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pytakeout-0.1.0-py2.py3-none-any.whl

Download URL pytakeout-0.1.0-py2.py3-none-any.whl
Size 5.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
dbe595ad2e60dcd87640fbae365c355080b741d05a865d197232f985229b8328
BLAKE2b-256 checksum
How to use checksums
882106cf425b75b87f29f2be50b71e7696402ecd75abf26179e7915ceea13505
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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