Skip to main content

No project description provided

Project description

Copcon

Copcon (Copy Context) is a CLI tool that generates a report of a directory's structure and file contents, then copies it to the clipboard.

Note

This tool is designed for macOS only, as it uses the pbcopy command for clipboard operations.

Installation

To install Copcon, make sure you have Python 3.7+ and Poetry installed. Then, clone this repository and run:

poetry install

Usage

After installation, you can use the copcon command:

copcon /path/to/your/directory

Options:

  • --depth INTEGER: Depth of directory tree to display (-1 for unlimited)
  • --exclude-hidden / --no-exclude-hidden: Exclude hidden files and directories (default: True)
  • --ignore-dirs TEXT: Additional directories to ignore (can be used multiple times)
  • --ignore-files TEXT: Additional files to ignore (can be used multiple times)

For help, use:

copcon --help

By default, Copcon ignores the following directories: __pycache__, .venv, node_modules, .git, .idea, .vscode, build, dist, target

And the following files: poetry.lock, package-lock.json, Cargo.lock, .DS_Store, yarn.lock

You can add more directories or files to ignore using the --ignore-dirs and --ignore-files options:

copcon /path/to/your/directory --ignore-dirs my_ignore_dir --ignore-files my_ignore_file.txt

Development

To run tests:

poetry run pytest

License

MIT License

Project details


Download files

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

Source Distribution

copcon-0.1.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

copcon-0.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file copcon-0.1.0.tar.gz.

File metadata

  • Download URL: copcon-0.1.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.8 Darwin/23.5.0

File hashes

Hashes for copcon-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a5cc519d9c82faeb2fbb856125dad2640f090ae18eabfbce4fa567083791310a
MD5 a5d41b1b43287af2f2ce54dd46c08dd4
BLAKE2b-256 5fc64c9b38670bd4f8af6e90ef5f5b8261bb41e45b2066e726e5c97fa383e1af

See more details on using hashes here.

File details

Details for the file copcon-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: copcon-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.8 Darwin/23.5.0

File hashes

Hashes for copcon-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 21498524c70899eb89da40340df88ce6b60783efaff17e5c3e97ea55bd1644f7
MD5 219fee9a218fcf30d1558c4a9897b8f8
BLAKE2b-256 a932ec6631f50a0a9bc6a737a3e00dd04ee8a260e587aa2b99e8ebd24eb606fa

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