codesec
Installation
$ pip install codesec
Dependencies
Python dependencies included during pip install:
pyperclip
No other dependencies on Windows and Mac OS.
Other systems may need to install xclip or xsel packages
Usage
usage: codesec [-h] [-s] [--symbols] [--reset] [title]
Create pretty printed section title for your code
positional arguments:
title title of your section
optional arguments:
-h, --help show this help message and exit
-s , --set configure settings: length, outer_corners, inner_corners,
outer_edges, inner_edges, center_fill, comment
--symbols prints out common ascii symbols for decoration
--reset reset config
Example:
$ codesec --set delimiter
Default delimiter: "# h "
Current delimiter: "# h "
Enter setting: "# !h "
$ codesec src tests example.py
Found 4 files
Editing src/app.py
Editing src/utils.py
Editing tests/test_func.py
Editing example.py
Before:
# app.py
# !h Boring Functions
def bar():
pass
# !h Cool Functions
def foo():
print("Somthing cool")
def main():
foo()
After:
# app.py
# +------------╔══════════════════╗------------+ #
# |::::::::::::║ Boring Functions ║::::::::::::| #
# +------------╚══════════════════╝------------+ #
def bar():
pass
# +-------------╔════════════════╗-------------+ #
# |:::::::::::::║ Cool Functions ║:::::::::::::| #
# +-------------╚════════════════╝-------------+ #
def foo():
print("Somthing cool")
def main():
foo()
Generate and copy individual sections
$ codesec --set length
Default length: 80
Current length: 80
Enter setting: 50
Preview:
# +--------------╔===============╗-------------+ #
# |::::::::::::::║ Section Title ║:::::::::::::| #
# +--------------╚===============╝-------------+ #
$ codesec --set inner_edges
Default inner_edges: =,=,║,║
Current inner_edges: =,=,║,║
Enter setting: ≡+,≡+,►,◄
Preview:
# +--------------╔≡+≡+≡+≡+≡+≡+≡+≡╗-------------+ #
# |::::::::::::::► Section Title ◄:::::::::::::| #
# +--------------╚≡+≡+≡+≡+≡+≡+≡+≡╝-------------+ #
$ codesec -t "My Section"
Copied:
# +---------------╔≡+≡+≡+≡+≡+≡+╗---------------+ #
# |:::::::::::::::► My Section ◄:::::::::::::::| #
# +---------------╚≡+≡+≡+≡+≡+≡+╝---------------+ #
Metadata
Release files for codesec 0.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| codesec-0.2.4.tar.gz | 17.7 kB | Without provenance | Details for codesec-0.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| codesec-0.2.4-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for codesec-0.2.4-py2.py3-none-any.whl |
Total release size: 34.5 kB
Release files / codesec-0.2.4.tar.gz
| Download URL | codesec-0.2.4.tar.gz |
|---|---|
| Size | 17.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
851078ef51707ac861d109ab9959fe3d254961e1a3924c8893efb921eb3dba34
|
|
BLAKE2b-256 checksum How to use checksums |
62fa862d11adec44e4de03d9a8a526a2c09cba64078889223207aaec175b9373
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.26.0
|
Release files / codesec-0.2.4-py2.py3-none-any.whl
| Download URL | codesec-0.2.4-py2.py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
59a5da8f578f061fcd5d0200041be0fa261c4463d8498bbf5024895f81df7f3c
|
|
BLAKE2b-256 checksum How to use checksums |
02effc24f324b35dfd3635528ff8fbab5d48666940273a8b7a56f8eef4a26036
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.26.0
|
Security for codesec 0.2.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.