Skip to main content

Patched!

patched-cli is a CLI that generates vulnerability patches for your codebase.

Quickstart guide

  1. Install patched-cli.
    pip install patched-cli
    
  2. Run patched-cli with your git repository as its argument or working directory. When the working directory is the git repository
    patched-cli
    
    When the argument is the git repository
    patched-cli /path/to/my/git/repository
    
  3. If this is the first time running patched-cli, you will be redirected to patched's sign-in page to generate a token. Copy the token and paste it to the prompt. If this is not the first time running patched-cli an application directory should already exist under your user's home directory if you are using a Unix-based operating system or AppData folder if you are using a windows based operating system. Alternatively you can set the environment variable PATCHED_ACCESS_TOKEN before running patched-cli.
    export PATCHED_ACCESS_TOKEN="your-patched-access-token-here"
    patched-cli 
    
  4. To create a pull request you can set the --create-pr flag.
    patched-cli --create-pr
    
    If patched.codes is not installed in your GitHub repository you can give patched-cli your GitHub Personal Access Token via the option --github-access-token or set the environment variable PATCHED_GITHUB_TOKEN
    export PATCHED_GITHUB_TOKEN="your.patched.access.token.here"
    patched-cli --create-pr
    

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

patched_cli-0.0.1.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

patched_cli-0.0.1-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file patched_cli-0.0.1.tar.gz.

File metadata

  • Download URL: patched_cli-0.0.1.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.13 Darwin/23.1.0

File hashes

Hashes for patched_cli-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2180e018f694c1996f2eeab47aabdd2c755bb259299d5a81d871841f6e957168
MD5 95f23452ad45e88c51929bf2f1ccca2f
BLAKE2b-256 7f9d560560a3595b6061f7690dd1c87e6a45ff2a4b65a88ac4ab5a0b12248709

See more details on using hashes here.

File details

Details for the file patched_cli-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: patched_cli-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.10.13 Darwin/23.1.0

File hashes

Hashes for patched_cli-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 17535e3b0ae406b14ad6634ff425aef305afbc362ce5d21abf2d92924a1b0042
MD5 b289fca78d772794f2c66b4b06ac5754
BLAKE2b-256 f12cac34e0030ade3c96879de2194d78bbbfa7567e52d6fcff3d34fa84717174

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page