deps


Namedeps JSON
Version 0.2.3 PyPI version JSON
download
home_page
SummaryA terminal UI dashboard to view python dependencies across Github repositories.
upload_time2023-01-16 12:49:43
maintainer
docs_urlNone
authorKyle Harrison
requires_python
licenseMIT
keywords deps
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Deps

[![Tests](https://github.com/apoclyps/deps/actions/workflows/test.yml/badge.svg)](https://github.com/apoclyps/deps/actions/workflows/test.yml)
![pypi](https://img.shields.io/pypi/v/deps.svg)
![versions](https://img.shields.io/pypi/pyversions/deps.svg)

![](https://banners.beyondco.de/deps.png?theme=light&packageManager=pip+install&packageName=deps&pattern=architect&style=style_1&description=Improve+visibility+of+your+dependencies&md=1&showWatermark=1&fontSize=100px&images=https%3A%2F%2Flaravel.com%2Fimg%2Flogomark.min.svg)

Simplify managing dependencies within an all-in-one TUI dashboard.

## How to use deps

You will need to create a GITHUB_TOKEN with permissions via [Github > Settings > Developer Settings](https://github.com/settings/tokens/new) with the `repo` permissions to read public/private repositories and and `admin:org` for `read:org` if you wish to access an organisation that is not public.

```bash
pip install deps

# your github username
export GITHUB_USER="user"
# an individual or an organisation in which the repository exists
export GITHUB_ORG="org"
# a comma separated list of repositories
export GITHUB_REPOSITORIES="repo_1,repo_2"
# your personal github token
export GITHUB_TOKEN="secret"

# optional - export to svg
export DEPS_EXPORT_TO_SVG=false

deps check
```

### Configuration

Deps supports both .ini and .env files. Deps always searches for configuration in this order:

- Environment variables;
- Repository: ini or .env file;
- Configuration Path
- Review Defaults

The following steps are used to provide the configuration using a `.env` or `.ini` file. The configuration can be read from within the module/repository (default location set by decouple) using the `.env` file or via a location specified by an environmental variable that points to a `.ini` file located in the root of the project or in a location specified by `PATH_TO_CONFIG`.

#### Using an `.env` file within the repository

```bash
cd /home/<your-user>/workspace/apoclyps/deps
touch .env

echo "GITHUB_ORG=apoclyps" >> .env
echo "GITHUB_REPOSITORIES=micropython-by-example" >> .env
python -m deps config
```

#### Using an `.ini` file within the repository

```bash
cd /home/<your-user>/workspace/apoclyps/deps
touch settings.ini
echo "[settings]\nGITHUB_ORG=apoclyps\nGITHUB_REPOSITORIES=micropython-by-example" >> settings.ini

python -m deps config
```

#### Providing a configuration path

If you wish to set the configuration path to use an `ini` or `.env` file when running the application, you can use the configuration of a specific file by supplying the path to the configuration like so:

```bash
cd /home/apoclyps/
touch settings.ini
echo "[settings]\nGITHUB_ORG=apoclyps\nGITHUB_REPOSITORIES=micropython-by-example" >> settings.ini

cd /home/<your-user>/workspace/apoclyps/deps
export DEPS_PATH_TO_CONFIG=/home/<your-user>/

python -m deps config
```

If at any time, you want to confirm your configuration reflects the file you have provided, you can use `deps config` to view what current configuration of Deps.

#### Configuring Layout

## Getting started with local development

To build and run the CLI on your host, you will need Python 3.9 or greater, pip, and virtualenv to build and run `deps`.
If you wish to publish a PR with your changes, first create a fork on Github and clone that code.

```bash
$ gh repo clone apoclyps/deps
$ cd deps
$ python3 -m venv env
$ source env/bin/activate
(env)$ pip install -r requirements_dev.txt
(env)$ pip install -r requirements.txt
(env)$ python -m deps check
```

If you wish to keep a copy of Deps on your host system, you can install and run it using:

```bash
python -m venv env
source env/bin/activate
python -m pip install -e .
deps -h
```

You can run the Deps within Docker:

```bash
docker-compose build cli && docker-compose run --rm cli python -m deps check
```

To build an image and run that image with all of the necessary dependencies using the following commands:

```bash
docker-compose build cli
docker-compose run --rm cli python -m deps check
```

## Testing

A test suite has been included to ensure Deps functions correctly.

To run the entire test suite with verbose output, run the following:

```bash
make test
```

## Linting

To run individual linting steps:

```bash
make lint
```

You can also set up `pre-commit` to run the linting steps automatically during the commit phase,
the pre-commit pipeline can be set up by running the following command on the project root:

```bash
pre-commit install
```

To run all checks manually:

```bash
pre-commit run --all
```

## Contributions

Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "deps",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "Deps",
    "author": "Kyle Harrison",
    "author_email": "kyle.harrison.dev@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/45/2e/1b08acf79929024e837e0657cd495b44ecc17a5a2e6a30fb0c95e0a4b53d/deps-0.2.3.tar.gz",
    "platform": null,
    "description": "# Deps\n\n[![Tests](https://github.com/apoclyps/deps/actions/workflows/test.yml/badge.svg)](https://github.com/apoclyps/deps/actions/workflows/test.yml)\n![pypi](https://img.shields.io/pypi/v/deps.svg)\n![versions](https://img.shields.io/pypi/pyversions/deps.svg)\n\n![](https://banners.beyondco.de/deps.png?theme=light&packageManager=pip+install&packageName=deps&pattern=architect&style=style_1&description=Improve+visibility+of+your+dependencies&md=1&showWatermark=1&fontSize=100px&images=https%3A%2F%2Flaravel.com%2Fimg%2Flogomark.min.svg)\n\nSimplify managing dependencies within an all-in-one TUI dashboard.\n\n## How to use deps\n\nYou will need to create a GITHUB_TOKEN with permissions via [Github > Settings > Developer Settings](https://github.com/settings/tokens/new) with the `repo` permissions to read public/private repositories and and `admin:org` for `read:org` if you wish to access an organisation that is not public.\n\n```bash\npip install deps\n\n# your github username\nexport GITHUB_USER=\"user\"\n# an individual or an organisation in which the repository exists\nexport GITHUB_ORG=\"org\"\n# a comma separated list of repositories\nexport GITHUB_REPOSITORIES=\"repo_1,repo_2\"\n# your personal github token\nexport GITHUB_TOKEN=\"secret\"\n\n# optional - export to svg\nexport DEPS_EXPORT_TO_SVG=false\n\ndeps check\n```\n\n### Configuration\n\nDeps supports both .ini and .env files. Deps always searches for configuration in this order:\n\n- Environment variables;\n- Repository: ini or .env file;\n- Configuration Path\n- Review Defaults\n\nThe following steps are used to provide the configuration using a `.env` or `.ini` file. The configuration can be read from within the module/repository (default location set by decouple) using the `.env` file or via a location specified by an environmental variable that points to a `.ini` file located in the root of the project or in a location specified by `PATH_TO_CONFIG`.\n\n#### Using an `.env` file within the repository\n\n```bash\ncd /home/<your-user>/workspace/apoclyps/deps\ntouch .env\n\necho \"GITHUB_ORG=apoclyps\" >> .env\necho \"GITHUB_REPOSITORIES=micropython-by-example\" >> .env\npython -m deps config\n```\n\n#### Using an `.ini` file within the repository\n\n```bash\ncd /home/<your-user>/workspace/apoclyps/deps\ntouch settings.ini\necho \"[settings]\\nGITHUB_ORG=apoclyps\\nGITHUB_REPOSITORIES=micropython-by-example\" >> settings.ini\n\npython -m deps config\n```\n\n#### Providing a configuration path\n\nIf you wish to set the configuration path to use an `ini` or `.env` file when running the application, you can use the configuration of a specific file by supplying the path to the configuration like so:\n\n```bash\ncd /home/apoclyps/\ntouch settings.ini\necho \"[settings]\\nGITHUB_ORG=apoclyps\\nGITHUB_REPOSITORIES=micropython-by-example\" >> settings.ini\n\ncd /home/<your-user>/workspace/apoclyps/deps\nexport DEPS_PATH_TO_CONFIG=/home/<your-user>/\n\npython -m deps config\n```\n\nIf at any time, you want to confirm your configuration reflects the file you have provided, you can use `deps config` to view what current configuration of Deps.\n\n#### Configuring Layout\n\n## Getting started with local development\n\nTo build and run the CLI on your host, you will need Python 3.9 or greater, pip, and virtualenv to build and run `deps`.\nIf you wish to publish a PR with your changes, first create a fork on Github and clone that code.\n\n```bash\n$ gh repo clone apoclyps/deps\n$ cd deps\n$ python3 -m venv env\n$ source env/bin/activate\n(env)$ pip install -r requirements_dev.txt\n(env)$ pip install -r requirements.txt\n(env)$ python -m deps check\n```\n\nIf you wish to keep a copy of Deps on your host system, you can install and run it using:\n\n```bash\npython -m venv env\nsource env/bin/activate\npython -m pip install -e .\ndeps -h\n```\n\nYou can run the Deps within Docker:\n\n```bash\ndocker-compose build cli && docker-compose run --rm cli python -m deps check\n```\n\nTo build an image and run that image with all of the necessary dependencies using the following commands:\n\n```bash\ndocker-compose build cli\ndocker-compose run --rm cli python -m deps check\n```\n\n## Testing\n\nA test suite has been included to ensure Deps functions correctly.\n\nTo run the entire test suite with verbose output, run the following:\n\n```bash\nmake test\n```\n\n## Linting\n\nTo run individual linting steps:\n\n```bash\nmake lint\n```\n\nYou can also set up `pre-commit` to run the linting steps automatically during the commit phase,\nthe pre-commit pipeline can be set up by running the following command on the project root:\n\n```bash\npre-commit install\n```\n\nTo run all checks manually:\n\n```bash\npre-commit run --all\n```\n\n## Contributions\n\nPlease read [CONTRIBUTING.md](CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A terminal UI dashboard to view python dependencies across Github repositories.",
    "version": "0.2.3",
    "split_keywords": [
        "deps"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "df963d29a2ee1c45a3235de8805d56ac63faaac1a58e3fe90d33d828ba05a9c9",
                "md5": "1231a15dec3b6161d4268e9c71d365bd",
                "sha256": "2fc0eabb85bd7dc6b76a9883bae7eab32f022e9841a661d44a64c4d86c8cb7ff"
            },
            "downloads": -1,
            "filename": "deps-0.2.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1231a15dec3b6161d4268e9c71d365bd",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 11765,
            "upload_time": "2023-01-16T12:49:41",
            "upload_time_iso_8601": "2023-01-16T12:49:41.398780Z",
            "url": "https://files.pythonhosted.org/packages/df/96/3d29a2ee1c45a3235de8805d56ac63faaac1a58e3fe90d33d828ba05a9c9/deps-0.2.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "452e1b08acf79929024e837e0657cd495b44ecc17a5a2e6a30fb0c95e0a4b53d",
                "md5": "6332952a3ed6e640f356f4acc35b5d52",
                "sha256": "fa7717a6d981b5f03716d0cadc77dabcad84928a4ded486f70308f84d74f98a7"
            },
            "downloads": -1,
            "filename": "deps-0.2.3.tar.gz",
            "has_sig": false,
            "md5_digest": "6332952a3ed6e640f356f4acc35b5d52",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 11622,
            "upload_time": "2023-01-16T12:49:43",
            "upload_time_iso_8601": "2023-01-16T12:49:43.156816Z",
            "url": "https://files.pythonhosted.org/packages/45/2e/1b08acf79929024e837e0657cd495b44ecc17a5a2e6a30fb0c95e0a4b53d/deps-0.2.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-16 12:49:43",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "deps"
}
        
Elapsed time: 0.03757s