Analyze Python functions and extract dependency source for reconstruction
Project description
funcsnap
Analyze Python functions, walk their dependencies, and reconstruct a self-contained source string suitable for exec().
Install
pip install funcsnap
Development
Clone the repo, create a virtual environment, then:
pip install -e ".[dev]"
ruff check .
pytest
Version strings are derived from Git tags (hatch-vcs). Without a repository or tags, builds use the fallback version from pyproject.toml.
PyPI releases (maintainers)
- Configure trusted publishing on PyPI for this repository and workflow
.github/workflows/publish.yml(optional GitHub Environmentpypi). - Merge your changes to
main, then tag and push:git tag v0.1.0 && git push origin v0.1.0(use the next semantic version). The publish workflow runs on tags matchingv*.
Update the Repository URL in pyproject.toml under [project.urls] to match your GitHub repo.
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file funcsnap-0.0.1.dev1.tar.gz.
File metadata
- Download URL: funcsnap-0.0.1.dev1.tar.gz
- Upload date:
- Size: 24.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
605a017e71af5213db4b0c8b360853a395d8f8aff984b0b5e29e136c724e5388
|
|
| MD5 |
92432f34180559e33b6e1843d0007d7a
|
|
| BLAKE2b-256 |
cb1ece12963770a01e288013548ff2fb3523df7b0943aefc2ec5df42acbb61e4
|
File details
Details for the file funcsnap-0.0.1.dev1-py3-none-any.whl.
File metadata
- Download URL: funcsnap-0.0.1.dev1-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a440eb2726849b5fac70e8c0f34a4007a2c2888e6b7282d203ab930598bac445
|
|
| MD5 |
08d38d0080e9798072ab7a3a7138f00f
|
|
| BLAKE2b-256 |
2827052961d3806deb39db1d479818d344d2663f0534d24e6878c78ca71adcdd
|