pycrumbs


Namepycrumbs JSON
Version 0.3.0 PyPI version JSON
download
home_pagehttps://github.com/CPBridge/pycrumbs
SummaryTool for automatically storing information about Python processes.
upload_time2024-03-11 23:09:23
maintainer
docs_urlNone
authorChris Bridge
requires_python>=3.7
licenseMIT
keywords tracking vcs version control
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # `pycrumbs`

This is a Python package to create "record files" of whenever a function is
executed. This file is placed alongside the output files of your function and
allows you to "follow the breadcrumbs" to figure out how exactly a set of files
were created. This includes information on the parameters of the functions, the
platform and environment it was run in, the versions of all libraries
installed, and source control information about the current state of the
project (using git).

`pycrumbs` was developed for reproducible machine learning pipelines, but can
be used for any application where Python code creates output files that may
need to be reproduced at a later stage.

### Installation

You can install the latest release of the package from PyPI:

```
pip install pycrumbs
```

Or you can install the package directly from the repo using pip:

```
pip install git+https://github.com/CPBridge/pycrumbs
```

### Use

The sole purpose of this library is to create "record" files for Python
functions that execute. The intended use of this is to "track" calls to key
functions (such as machine learning training or preprocessing routines) to
ensure that they can be reproduced later. The type of information captured
includes:

- Information about the function that was called. Its name, source file,
  and arguments it was called with at runtime.
- Environment information. Username that ran the code, the
  node and operating system on which it was run, GPUs available on the
  machine. SLURM specific information if run within a SLURM environment.
- Timing information (start and end times and duration).
- Command line arguments used to invoke the Python interpreter.
- Version control information about the function being executed, including
  the git hash and current active branch. Note that this requires that the
  function was executed from a source file within a git repository. If you
  want to install your package code with pip, use the
  `pip install --editable` option to allow for tracking with this
  decorator.
- A list of all Python packages currently installed, with their versions.
- Seeding information for random number generators.

You can very easily add a job record to a function using the `tracked`
decorator in the `pycrumbs` module. It is assumed
that a tracked function will create output files within a given output
directory, and that the job record file (a JSON file) should be placed in
the same directory. `tracked` gives you various options on how to
specify where the output location is, including intercepting runtime
parameters of the decorated function:

Specify a literal output location (always the same).

```python
from pathlib import Path
from pycrumbs import tracked


@tracked(literal_directory=Path('/home/user/proj/'))
def my_train_fun():
    # Do something...
    pass

# Record will be placed at /home/user/proj/my_train_fun_record.json
my_train_fun()
```

Specify an output location by intercepting the runtime value of a parameter
of the decorated function.

```python
from pathlib import Path
from pycrumbs import tracked


@tracked(directory_parameter='model_output_dir'))
def my_train_fun(model_output_dir: Path):
    # Do something...
    pass

# Record will be placed at
# /home/user/proj/my_model/my_train_fun_record.json
my_train_fun(model_output_dir=Path('/home/user/proj/my_model'))
```

Specify an output location that is determined dynamically by intercepting
the runtime value of a parameter of the decorated function to use as the
sub-directory of a literal location. This is useful when only the final
part of the path changes between different times the function is run.

```python
from pathlib import Path
from pycrumbs import tracked


@tracked(
    literal_directory=Path('/home/user/proj/'),
    subdirectory_name_parameter='model_name'
)
def my_train_fun(model_name: str):
    # Do something...
    pass

# Record will be placed at
# /home/user/proj/my_model/my_train_fun_record.json
my_train_fun(model_name='my_model')
```

You may also have the decorator dynamically add a timestamp
(`include_timestamp`) or a UUID (`include_uuid`) to the output directory to
ensure that each run results in a unique output directory. If you do this
in combination with `output_dir_parameter` or `subdirectory_name_parameter`, the
value of the relevant parameter will be updated to reflect the addition
of the UUID/timestamp.

```python
from pathlib import Path
from pycrumbs import tracked

@tracked(
    literal_directory=Path('/home/user/proj/'),
    subdirectory_name_parameter='model_name',
    include_uuid=True,
)
def my_train_fun(model_name: str):
    print(model_name)
    # Do something...
    pass

# Record will be placed at, e.g.
# /home/user/proj/my_model_2dddbaa6-620f-4aaa-9883-eb3557dbbdb2/my_train_fun_record.json
my_train_fun(model_name='my_model')
# prints my_model_2dddbaa6-620f-4aaa-9883-eb3557dbbdb2
```

Alternatively, you may specify an alternative parameter of the wrapped
function into which the full updated output directory path will be placed.
Use the `directory_injection_parameter` to specify this. This is required when
you append a timestamp or a UUID without specifying an `output_dir_parameter`
or `subdirectory_name_parameter`, otherwise there is no way for the wrapped
function to access the updated output directory. However, you may use
this at any time for your convenience.

```python
from pathlib import Path
from pycrumbs import tracked

@tracked(
    literal_directory=Path('/home/user/proj/'),
    include_uuid=True,
    directory_injection_parameter='model_directory'
)
def my_train_fun(
    model_directory: Path | None
):
    print(model_directory)
    # Do something...
    pass

# Record will be placed at, e.g.
# /home/user/proj_2dddbaa6-620f-4aaa-9883-eb3557dbbdb2/my_train_fun_record.json
my_train_fun()
# prints /home/user/proj_2dddbaa6-620f-4aaa-9883-eb3557dbbdb2
```

#### Git Versioning

Unless the `disable_git_tracking` parameter is set, `pycrumbs` will try to
include the git versioning information of the source code where the function
is defined. This implies two requirements:

1. The function is defined in a file. If you try to track a function defined
   interactively in a REPL, it won't work!
2. The source code containing the tracked function is in a git repository on
   your filesystem. If you have a repository tracked using git, but then `pip
   install` the package to run it, since the source file actually being executed
   is the installed copy of the one under version control. In this siutation,
   you should install using the `-e` flag, such that the executed version of
   the file is the same as the one under version control.

#### Seeds

In addition to tracking your function call, `pycrumbs` also handles seeding
random number generators for you and storing the seed in the record file
so that you can reproduce the run later, if needed. `pycrumbs` knows how to
seed random number generators in the following libraries and will do so if
they are installed:

- The Python standard library `random` module.
- Numpy
- Tensorflow
- Pytorch

Additionally you may specify a seed parameter by intercepting the runtime value
of a parameter of the decorated function. This is always recommended as it
allows re-running the job with the same seed without having to change the code.

```python
from pathlib import Path
from pycrumbs import tracked


@tracked(
    literal_directory=Path('/home/user/proj/'),
    subdirectory_name_parameter='model_name',
    seed_parameter='seed'
)
def my_train_fun(model_name: str, seed: int | None = None):
    # Do something...
    print(seed)

# Seed will be injected at runtime by the decorator mechanism and stored in the
# record file, you don't have to do anything else
my_train_fun(model_name='my_model')
# prints e.g. 272428

# But you can manually specify the seed later to reproduce, without
# having to alter the function signature
my_train_fun(model_name='my_model', seed=272428)
# prints 272428
```

#### Combining with Other Decorators

If you use this decorator in combination with decorators such as those from the
`click` module (and most other common decorators), you should place this
decorator last. This is because the `click` decorators alter the function
signature, which will break the operation of `tracked`. The last decorator is
applied first, meaning that it will operate on the function with its original
signature as intended.

```python
from pathlib import Path
import click
from pycrumbs import tracked


@click.command()
@click.argument('model_name')
@click.option('--seed', '-s', type=int, help='Random seed.')
@tracked(
    literal_directory=Path('/home/user/proj/'),
    subdirectory_name_parameter='model_name',
    seed_parameter='seed'
)
def my_train_fun(model_name: str, seed: int | None = None):
    # Do something...
    print(seed)
```

### Record Files

Here is an example of a job record file created by running a simple function
like the ones in the example above:

```json
{
    "uuid": "51af8c51-0de5-48f5-a7da-9ec9688d56b6",
    "timing": {
        "start_time": "2023-01-16 22:38:54.484040",
        "end_time": "2023-01-16 22:38:54.534795",
        "run_time": "0:00:00.050755"
    },
    "environment": {
        "argv": [
            "thing.py"
        ],
        "orig_argv": [
            "/Users/chris/.pyenv/versions/pycrumbs/bin/python",
            "thing.py"
        ],
        "platform": "darwin",
        "platform_info": "macOS-12.3.1-arm64-arm-64bit",
        "python_version": "3.10.3 (main, Sep 26 2022, 17:17:59) [Clang 13.1.6 (clang-1316.0.21.2.5)]",
        "python_implementation": "cpython",
        "python_executable": "/Users/chris/.pyenv/versions/pycrumbs/bin/python",
        "cwd": "/Users/chris/Developer/project",
        "hostname": "hostname.example.com",
        "python_path": [
            "/Users/chris/Developer/project",
            "/Users/chris/.pyenv/versions/project/lib/python3.10/site-packages/git/ext/gitdb",
            "/Users/chris/.pyenv/versions/3.10.3/lib/python310.zip",
            "/Users/chris/.pyenv/versions/3.10.3/lib/python3.10",
            "/Users/chris/.pyenv/versions/3.10.3/lib/python3.10/lib-dynload",
            "/Users/chris/.pyenv/versions/project/lib/python3.10/site-packages",
            "/Users/chris/Developer/project/src"
        ],
        "cpu_count": 10,
        "user": "cpb28",
        "environment_variables": {
            "CUDA_VISIBLE_DEVICES": null,
            "VIRTUAL_ENV": "/Users/chris/.pyenv/versions/3.10.3/envs/pycrumbs",
            "PYENV_VIRTUAL_ENV": "/Users/chris/.pyenv/versions/3.10.3/envs/pycrumbs",
            "PYTHONPATH": null
        }
    },
    "package_inventory": {
        "setuptools": "65.6.3",
        "types-setuptools": "57.4.0",
        "attrs": "22.1.0",
        "pip": "22.0.4",
        "packaging": "22.0",
        "ipython": "7.34.0",
        "pytest": "7.2.0",
        "traitlets": "5.8.0",
        "decorator": "5.1.1",
        "smmap": "5.0.0",
        "pexpect": "4.8.0",
        "typing-extensions": "4.4.0",
        "gitdb": "4.0.10",
        "flake8": "3.7.7",
        "gitpython": "3.1.29",
        "prompt-toolkit": "3.0.36",
        "pydocstyle": "3.0.0",
        "pygments": "2.13.0",
        "pycodestyle": "2.5.0",
        "snowballstemmer": "2.2.0",
        "pyflakes": "2.1.1",
        "tomli": "2.0.1",
        "six": "1.16.0",
        "py": "1.9.0",
        "flake8-docstrings": "1.3.0",
        "iniconfig": "1.1.1",
        "exceptiongroup": "1.0.4",
        "flake8-polyfill": "1.0.2",
        "pluggy": "1.0.0",
        "mypy": "0.910",
        "jedi": "0.18.2",
        "toml": "0.10.2",
        "parso": "0.8.3",
        "pep8-naming": "0.8.2",
        "pickleshare": "0.7.5",
        "ptyprocess": "0.7.0",
        "mccabe": "0.6.1",
        "mypy-extensions": "0.4.3",
        "entrypoints": "0.3",
        "wcwidth": "0.2.5",
        "backcall": "0.2.0",
        "matplotlib-inline": "0.1.6",
        "appnope": "0.1.3",
        "pycrumbs": "0.1.0"
    },
    "called_function": {
        "name": "my_train_fun",
        "module": "__main__",
        "source_file": "/Users/chris/Developer/project/train.py",
        "parameters": {
            "model_name": "my_model",
            "seed": null
        },
        "altered_parameters": {
            "model_name": "my_model",
            "seed": 106543
        }
    },
    "tracked_module": {
        "module_path": "/Users/chris/Developer/project/train.py",
        "name": "__main__",
        "git_active_branch": "master",
        "git_commit_hash": "2a38ea37ee41466612f312d082445528df9f8d9d",
        "git_is_dirty": true,
        "git_remotes": {
            "origin": "ssh://git@github.com:/example/project.git"
        },
        "git_working_dir": "/Users/chris/Developer/project"
    },
    "seed": 106543
}
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/CPBridge/pycrumbs",
    "name": "pycrumbs",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "tracking,vcs,version control",
    "author": "Chris Bridge",
    "author_email": "chrisbridge44@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/6f/47/863c1f2bf25741a8f4e8907d64fb85bd9a76d3b9277bd7092ae24504b438/pycrumbs-0.3.0.tar.gz",
    "platform": null,
    "description": "# `pycrumbs`\n\nThis is a Python package to create \"record files\" of whenever a function is\nexecuted. This file is placed alongside the output files of your function and\nallows you to \"follow the breadcrumbs\" to figure out how exactly a set of files\nwere created. This includes information on the parameters of the functions, the\nplatform and environment it was run in, the versions of all libraries\ninstalled, and source control information about the current state of the\nproject (using git).\n\n`pycrumbs` was developed for reproducible machine learning pipelines, but can\nbe used for any application where Python code creates output files that may\nneed to be reproduced at a later stage.\n\n### Installation\n\nYou can install the latest release of the package from PyPI:\n\n```\npip install pycrumbs\n```\n\nOr you can install the package directly from the repo using pip:\n\n```\npip install git+https://github.com/CPBridge/pycrumbs\n```\n\n### Use\n\nThe sole purpose of this library is to create \"record\" files for Python\nfunctions that execute. The intended use of this is to \"track\" calls to key\nfunctions (such as machine learning training or preprocessing routines) to\nensure that they can be reproduced later. The type of information captured\nincludes:\n\n- Information about the function that was called. Its name, source file,\n  and arguments it was called with at runtime.\n- Environment information. Username that ran the code, the\n  node and operating system on which it was run, GPUs available on the\n  machine. SLURM specific information if run within a SLURM environment.\n- Timing information (start and end times and duration).\n- Command line arguments used to invoke the Python interpreter.\n- Version control information about the function being executed, including\n  the git hash and current active branch. Note that this requires that the\n  function was executed from a source file within a git repository. If you\n  want to install your package code with pip, use the\n  `pip install --editable` option to allow for tracking with this\n  decorator.\n- A list of all Python packages currently installed, with their versions.\n- Seeding information for random number generators.\n\nYou can very easily add a job record to a function using the `tracked`\ndecorator in the `pycrumbs` module. It is assumed\nthat a tracked function will create output files within a given output\ndirectory, and that the job record file (a JSON file) should be placed in\nthe same directory. `tracked` gives you various options on how to\nspecify where the output location is, including intercepting runtime\nparameters of the decorated function:\n\nSpecify a literal output location (always the same).\n\n```python\nfrom pathlib import Path\nfrom pycrumbs import tracked\n\n\n@tracked(literal_directory=Path('/home/user/proj/'))\ndef my_train_fun():\n    # Do something...\n    pass\n\n# Record will be placed at /home/user/proj/my_train_fun_record.json\nmy_train_fun()\n```\n\nSpecify an output location by intercepting the runtime value of a parameter\nof the decorated function.\n\n```python\nfrom pathlib import Path\nfrom pycrumbs import tracked\n\n\n@tracked(directory_parameter='model_output_dir'))\ndef my_train_fun(model_output_dir: Path):\n    # Do something...\n    pass\n\n# Record will be placed at\n# /home/user/proj/my_model/my_train_fun_record.json\nmy_train_fun(model_output_dir=Path('/home/user/proj/my_model'))\n```\n\nSpecify an output location that is determined dynamically by intercepting\nthe runtime value of a parameter of the decorated function to use as the\nsub-directory of a literal location. This is useful when only the final\npart of the path changes between different times the function is run.\n\n```python\nfrom pathlib import Path\nfrom pycrumbs import tracked\n\n\n@tracked(\n    literal_directory=Path('/home/user/proj/'),\n    subdirectory_name_parameter='model_name'\n)\ndef my_train_fun(model_name: str):\n    # Do something...\n    pass\n\n# Record will be placed at\n# /home/user/proj/my_model/my_train_fun_record.json\nmy_train_fun(model_name='my_model')\n```\n\nYou may also have the decorator dynamically add a timestamp\n(`include_timestamp`) or a UUID (`include_uuid`) to the output directory to\nensure that each run results in a unique output directory. If you do this\nin combination with `output_dir_parameter` or `subdirectory_name_parameter`, the\nvalue of the relevant parameter will be updated to reflect the addition\nof the UUID/timestamp.\n\n```python\nfrom pathlib import Path\nfrom pycrumbs import tracked\n\n@tracked(\n    literal_directory=Path('/home/user/proj/'),\n    subdirectory_name_parameter='model_name',\n    include_uuid=True,\n)\ndef my_train_fun(model_name: str):\n    print(model_name)\n    # Do something...\n    pass\n\n# Record will be placed at, e.g.\n# /home/user/proj/my_model_2dddbaa6-620f-4aaa-9883-eb3557dbbdb2/my_train_fun_record.json\nmy_train_fun(model_name='my_model')\n# prints my_model_2dddbaa6-620f-4aaa-9883-eb3557dbbdb2\n```\n\nAlternatively, you may specify an alternative parameter of the wrapped\nfunction into which the full updated output directory path will be placed.\nUse the `directory_injection_parameter` to specify this. This is required when\nyou append a timestamp or a UUID without specifying an `output_dir_parameter`\nor `subdirectory_name_parameter`, otherwise there is no way for the wrapped\nfunction to access the updated output directory. However, you may use\nthis at any time for your convenience.\n\n```python\nfrom pathlib import Path\nfrom pycrumbs import tracked\n\n@tracked(\n    literal_directory=Path('/home/user/proj/'),\n    include_uuid=True,\n    directory_injection_parameter='model_directory'\n)\ndef my_train_fun(\n    model_directory: Path | None\n):\n    print(model_directory)\n    # Do something...\n    pass\n\n# Record will be placed at, e.g.\n# /home/user/proj_2dddbaa6-620f-4aaa-9883-eb3557dbbdb2/my_train_fun_record.json\nmy_train_fun()\n# prints /home/user/proj_2dddbaa6-620f-4aaa-9883-eb3557dbbdb2\n```\n\n#### Git Versioning\n\nUnless the `disable_git_tracking` parameter is set, `pycrumbs` will try to\ninclude the git versioning information of the source code where the function\nis defined. This implies two requirements:\n\n1. The function is defined in a file. If you try to track a function defined\n   interactively in a REPL, it won't work!\n2. The source code containing the tracked function is in a git repository on\n   your filesystem. If you have a repository tracked using git, but then `pip\n   install` the package to run it, since the source file actually being executed\n   is the installed copy of the one under version control. In this siutation,\n   you should install using the `-e` flag, such that the executed version of\n   the file is the same as the one under version control.\n\n#### Seeds\n\nIn addition to tracking your function call, `pycrumbs` also handles seeding\nrandom number generators for you and storing the seed in the record file\nso that you can reproduce the run later, if needed. `pycrumbs` knows how to\nseed random number generators in the following libraries and will do so if\nthey are installed:\n\n- The Python standard library `random` module.\n- Numpy\n- Tensorflow\n- Pytorch\n\nAdditionally you may specify a seed parameter by intercepting the runtime value\nof a parameter of the decorated function. This is always recommended as it\nallows re-running the job with the same seed without having to change the code.\n\n```python\nfrom pathlib import Path\nfrom pycrumbs import tracked\n\n\n@tracked(\n    literal_directory=Path('/home/user/proj/'),\n    subdirectory_name_parameter='model_name',\n    seed_parameter='seed'\n)\ndef my_train_fun(model_name: str, seed: int | None = None):\n    # Do something...\n    print(seed)\n\n# Seed will be injected at runtime by the decorator mechanism and stored in the\n# record file, you don't have to do anything else\nmy_train_fun(model_name='my_model')\n# prints e.g. 272428\n\n# But you can manually specify the seed later to reproduce, without\n# having to alter the function signature\nmy_train_fun(model_name='my_model', seed=272428)\n# prints 272428\n```\n\n#### Combining with Other Decorators\n\nIf you use this decorator in combination with decorators such as those from the\n`click` module (and most other common decorators), you should place this\ndecorator last. This is because the `click` decorators alter the function\nsignature, which will break the operation of `tracked`. The last decorator is\napplied first, meaning that it will operate on the function with its original\nsignature as intended.\n\n```python\nfrom pathlib import Path\nimport click\nfrom pycrumbs import tracked\n\n\n@click.command()\n@click.argument('model_name')\n@click.option('--seed', '-s', type=int, help='Random seed.')\n@tracked(\n    literal_directory=Path('/home/user/proj/'),\n    subdirectory_name_parameter='model_name',\n    seed_parameter='seed'\n)\ndef my_train_fun(model_name: str, seed: int | None = None):\n    # Do something...\n    print(seed)\n```\n\n### Record Files\n\nHere is an example of a job record file created by running a simple function\nlike the ones in the example above:\n\n```json\n{\n    \"uuid\": \"51af8c51-0de5-48f5-a7da-9ec9688d56b6\",\n    \"timing\": {\n        \"start_time\": \"2023-01-16 22:38:54.484040\",\n        \"end_time\": \"2023-01-16 22:38:54.534795\",\n        \"run_time\": \"0:00:00.050755\"\n    },\n    \"environment\": {\n        \"argv\": [\n            \"thing.py\"\n        ],\n        \"orig_argv\": [\n            \"/Users/chris/.pyenv/versions/pycrumbs/bin/python\",\n            \"thing.py\"\n        ],\n        \"platform\": \"darwin\",\n        \"platform_info\": \"macOS-12.3.1-arm64-arm-64bit\",\n        \"python_version\": \"3.10.3 (main, Sep 26 2022, 17:17:59) [Clang 13.1.6 (clang-1316.0.21.2.5)]\",\n        \"python_implementation\": \"cpython\",\n        \"python_executable\": \"/Users/chris/.pyenv/versions/pycrumbs/bin/python\",\n        \"cwd\": \"/Users/chris/Developer/project\",\n        \"hostname\": \"hostname.example.com\",\n        \"python_path\": [\n            \"/Users/chris/Developer/project\",\n            \"/Users/chris/.pyenv/versions/project/lib/python3.10/site-packages/git/ext/gitdb\",\n            \"/Users/chris/.pyenv/versions/3.10.3/lib/python310.zip\",\n            \"/Users/chris/.pyenv/versions/3.10.3/lib/python3.10\",\n            \"/Users/chris/.pyenv/versions/3.10.3/lib/python3.10/lib-dynload\",\n            \"/Users/chris/.pyenv/versions/project/lib/python3.10/site-packages\",\n            \"/Users/chris/Developer/project/src\"\n        ],\n        \"cpu_count\": 10,\n        \"user\": \"cpb28\",\n        \"environment_variables\": {\n            \"CUDA_VISIBLE_DEVICES\": null,\n            \"VIRTUAL_ENV\": \"/Users/chris/.pyenv/versions/3.10.3/envs/pycrumbs\",\n            \"PYENV_VIRTUAL_ENV\": \"/Users/chris/.pyenv/versions/3.10.3/envs/pycrumbs\",\n            \"PYTHONPATH\": null\n        }\n    },\n    \"package_inventory\": {\n        \"setuptools\": \"65.6.3\",\n        \"types-setuptools\": \"57.4.0\",\n        \"attrs\": \"22.1.0\",\n        \"pip\": \"22.0.4\",\n        \"packaging\": \"22.0\",\n        \"ipython\": \"7.34.0\",\n        \"pytest\": \"7.2.0\",\n        \"traitlets\": \"5.8.0\",\n        \"decorator\": \"5.1.1\",\n        \"smmap\": \"5.0.0\",\n        \"pexpect\": \"4.8.0\",\n        \"typing-extensions\": \"4.4.0\",\n        \"gitdb\": \"4.0.10\",\n        \"flake8\": \"3.7.7\",\n        \"gitpython\": \"3.1.29\",\n        \"prompt-toolkit\": \"3.0.36\",\n        \"pydocstyle\": \"3.0.0\",\n        \"pygments\": \"2.13.0\",\n        \"pycodestyle\": \"2.5.0\",\n        \"snowballstemmer\": \"2.2.0\",\n        \"pyflakes\": \"2.1.1\",\n        \"tomli\": \"2.0.1\",\n        \"six\": \"1.16.0\",\n        \"py\": \"1.9.0\",\n        \"flake8-docstrings\": \"1.3.0\",\n        \"iniconfig\": \"1.1.1\",\n        \"exceptiongroup\": \"1.0.4\",\n        \"flake8-polyfill\": \"1.0.2\",\n        \"pluggy\": \"1.0.0\",\n        \"mypy\": \"0.910\",\n        \"jedi\": \"0.18.2\",\n        \"toml\": \"0.10.2\",\n        \"parso\": \"0.8.3\",\n        \"pep8-naming\": \"0.8.2\",\n        \"pickleshare\": \"0.7.5\",\n        \"ptyprocess\": \"0.7.0\",\n        \"mccabe\": \"0.6.1\",\n        \"mypy-extensions\": \"0.4.3\",\n        \"entrypoints\": \"0.3\",\n        \"wcwidth\": \"0.2.5\",\n        \"backcall\": \"0.2.0\",\n        \"matplotlib-inline\": \"0.1.6\",\n        \"appnope\": \"0.1.3\",\n        \"pycrumbs\": \"0.1.0\"\n    },\n    \"called_function\": {\n        \"name\": \"my_train_fun\",\n        \"module\": \"__main__\",\n        \"source_file\": \"/Users/chris/Developer/project/train.py\",\n        \"parameters\": {\n            \"model_name\": \"my_model\",\n            \"seed\": null\n        },\n        \"altered_parameters\": {\n            \"model_name\": \"my_model\",\n            \"seed\": 106543\n        }\n    },\n    \"tracked_module\": {\n        \"module_path\": \"/Users/chris/Developer/project/train.py\",\n        \"name\": \"__main__\",\n        \"git_active_branch\": \"master\",\n        \"git_commit_hash\": \"2a38ea37ee41466612f312d082445528df9f8d9d\",\n        \"git_is_dirty\": true,\n        \"git_remotes\": {\n            \"origin\": \"ssh://git@github.com:/example/project.git\"\n        },\n        \"git_working_dir\": \"/Users/chris/Developer/project\"\n    },\n    \"seed\": 106543\n}\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Tool for automatically storing information about Python processes.",
    "version": "0.3.0",
    "project_urls": {
        "Homepage": "https://github.com/CPBridge/pycrumbs",
        "Repository": "https://github.com/CPBridge/pycrumbs"
    },
    "split_keywords": [
        "tracking",
        "vcs",
        "version control"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "72a21f995f36448576cd5c937864daba4f5c1e285f106f5b0319d4ee1b587b00",
                "md5": "8b4f1d9607581e723047a00e7095419c",
                "sha256": "462d6445f3c7d28ad48974537bf4beecf0b83ba49addaf3305e8fe1a3a767a09"
            },
            "downloads": -1,
            "filename": "pycrumbs-0.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8b4f1d9607581e723047a00e7095419c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 15366,
            "upload_time": "2024-03-11T23:09:21",
            "upload_time_iso_8601": "2024-03-11T23:09:21.222958Z",
            "url": "https://files.pythonhosted.org/packages/72/a2/1f995f36448576cd5c937864daba4f5c1e285f106f5b0319d4ee1b587b00/pycrumbs-0.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6f47863c1f2bf25741a8f4e8907d64fb85bd9a76d3b9277bd7092ae24504b438",
                "md5": "d6fbd4033048fd60810b1d59061a2914",
                "sha256": "a7bdae0274b42c8083e8e3b18146228f11bbc93870c92648cbad340a83da6531"
            },
            "downloads": -1,
            "filename": "pycrumbs-0.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "d6fbd4033048fd60810b1d59061a2914",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 17091,
            "upload_time": "2024-03-11T23:09:23",
            "upload_time_iso_8601": "2024-03-11T23:09:23.334613Z",
            "url": "https://files.pythonhosted.org/packages/6f/47/863c1f2bf25741a8f4e8907d64fb85bd9a76d3b9277bd7092ae24504b438/pycrumbs-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-11 23:09:23",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "CPBridge",
    "github_project": "pycrumbs",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pycrumbs"
}
        
Elapsed time: 0.20010s