depex


Namedepex JSON
Version 0.1.0 PyPI version JSON
download
home_page
SummaryExtract project requirements from pyproject.toml.
upload_time2023-10-24 21:38:45
maintainer
docs_urlNone
author
requires_python>=3.11
licenseMIT License
keywords packaging pyproject toml utility
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # DepEx

Extract Python project dependencies from a `pyproject.toml` file.

## Why?

I haven't completely dropped `requirements.txt` and `requirements-dev.txt` files yet so this helps me keep them in sync with the dependencies I have listed in the `pyproject.toml` file.


## Usage

Just provide the path to a Python project directory or a `pyproject.toml` file and extract base dependencies, optional dependencies, or all dependencies from the `pyproject.toml` file.

```bash
# generate a file with only the base dependencies of a package
$ depex --no-opts > requirements.txt

# or generate a file with all dependencies (including optional) of a package
depex > requirements-dev.txt
```

## Help


```bash
$ depex -h
usage: depex [-h] [--opts | --no-opts] [--version] path

Extract Python project requirements from a `pyproject.toml` file.

positional arguments:
  path               path to a project directory or pyproject.toml file

options:
  -h, --help         show this help message and exit
  --opts, --no-opts  include all dependencies
  --version          show program's version number and exit

Copyright 2023 Josh Duncan (joshbduncan.com)
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "depex",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": "",
    "keywords": "packaging,pyproject,toml,utility",
    "author": "",
    "author_email": "Josh Duncan <joshbduncan@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/6b/5c/7daad70430ec7f26d69c361c144a71568fe1c7eba9e0f23e32080920a9cd/depex-0.1.0.tar.gz",
    "platform": null,
    "description": "# DepEx\n\nExtract Python project dependencies from a `pyproject.toml` file.\n\n## Why?\n\nI haven't completely dropped `requirements.txt` and `requirements-dev.txt` files yet so this helps me keep them in sync with the dependencies I have listed in the `pyproject.toml` file.\n\n\n## Usage\n\nJust provide the path to a Python project directory or a `pyproject.toml` file and extract base dependencies, optional dependencies, or all dependencies from the `pyproject.toml` file.\n\n```bash\n# generate a file with only the base dependencies of a package\n$ depex --no-opts > requirements.txt\n\n# or generate a file with all dependencies (including optional) of a package\ndepex > requirements-dev.txt\n```\n\n## Help\n\n\n```bash\n$ depex -h\nusage: depex [-h] [--opts | --no-opts] [--version] path\n\nExtract Python project requirements from a `pyproject.toml` file.\n\npositional arguments:\n  path               path to a project directory or pyproject.toml file\n\noptions:\n  -h, --help         show this help message and exit\n  --opts, --no-opts  include all dependencies\n  --version          show program's version number and exit\n\nCopyright 2023 Josh Duncan (joshbduncan.com)\n```\n",
    "bugtrack_url": null,
    "license": "MIT License",
    "summary": "Extract project requirements from pyproject.toml.",
    "version": "0.1.0",
    "project_urls": null,
    "split_keywords": [
        "packaging",
        "pyproject",
        "toml",
        "utility"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7ab3956f810eea40b1a608e711bef43c22511ac66233495780607a927dc4f2e0",
                "md5": "3017fb0f746935750d5d6cbfc0e5d578",
                "sha256": "f55eb66d6d64f132eb1f36fd0bd8a65c8b522646d6f155105c53e8571b3fdfda"
            },
            "downloads": -1,
            "filename": "depex-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3017fb0f746935750d5d6cbfc0e5d578",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 5034,
            "upload_time": "2023-10-24T21:38:44",
            "upload_time_iso_8601": "2023-10-24T21:38:44.360109Z",
            "url": "https://files.pythonhosted.org/packages/7a/b3/956f810eea40b1a608e711bef43c22511ac66233495780607a927dc4f2e0/depex-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6b5c7daad70430ec7f26d69c361c144a71568fe1c7eba9e0f23e32080920a9cd",
                "md5": "5bb1d364cbea9b44880e76f221092f18",
                "sha256": "4d4f62ca6bc7a17c6d38071c4612d71fc40d5d7e5107aa53d4927a9fc3060634"
            },
            "downloads": -1,
            "filename": "depex-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "5bb1d364cbea9b44880e76f221092f18",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 9242,
            "upload_time": "2023-10-24T21:38:45",
            "upload_time_iso_8601": "2023-10-24T21:38:45.428420Z",
            "url": "https://files.pythonhosted.org/packages/6b/5c/7daad70430ec7f26d69c361c144a71568fe1c7eba9e0f23e32080920a9cd/depex-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-24 21:38:45",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "depex"
}
        
Elapsed time: 0.15526s