A command line tool to generate documentation
Project description
Trelent CLI
Welcome to the Trelent CLI (Command Line Interface)! The Trelent CLI let's you offload documentation to us in a much more direct manner - we'll document an entire project all at once on your behalf. No more generating docstrings for individual functions!
Usage
Before using the CLI, you have to authenticate it using your Trelent API Key, which can be found on our Dashboard. Please note that use of the Trelent-CLI is a paid feature and is unavailable unless you upgrade your account to a paid tier.
Please note that the auth command stores your Trelent API Key locally in plain text. We are working on an improved solution and apologize for any inconvenience.
Authenticate to Trelent using the command below, and follow the prompts:
trelent auth
You may also passs your Trelent API Key directly into other commands by using the --key (-k for short) option:
trelent document -k sk_trlnt_... [FOLDER_PATH]
Once authenticated, you may generate documentation for all source code files in a given folder:
trelent document [FOLDER_PATH]
By default, docstrings will be added to a .diff file next to source. For example, a file called test.py:
def add_nums(num1, num2):
return num1 + num2
We generate test.py.diff:
def add_nums(num1, num2):
+ """Docstring here"""
return num1 + num2
If you wish to insert docstrings directly into your source files, use the --insert (-i for short) flag:
trelent document -i [FOLDER_PATH]
We offer verbose output if you want some insight into why functions or files were skipped. Use the --verbose (-v for short) flag:
trelent document -v [FOLDER_PATH]
License
Please see the LICENSE file for specific license terms. The summary below is a not legally binding.
We use the “Commons Clause” License Condition v1.0 in combination with the MIT License. You may freely view, modify or otherwisse interact with our software but can not sell it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trelent-1.0.tar.gz.
File metadata
- Download URL: trelent-1.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ffff9c5c75a382a2dcc4ee50edca138219bf0e4833cf7d9edb74555b6f1ee9b
|
|
| MD5 |
7a586a4fb23a536748438345c8465345
|
|
| BLAKE2b-256 |
baaffd4891c4c95216f4a801afc315df8fee0f38f3ec4b7b988a8fa35e16fb16
|
File details
Details for the file trelent-1.0-py3-none-any.whl.
File metadata
- Download URL: trelent-1.0-py3-none-any.whl
- Upload date:
- Size: 8.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9a2e3ec8dd2eac7c39d9fabdb138958ae947aaa42ea34542c628ff9e36b292c
|
|
| MD5 |
e2ea1a1097f33af900a34b2029a7e2ff
|
|
| BLAKE2b-256 |
c082c3e7b5f401f3feb331a08819e9b9c966d943ca0acbd3a5e70ff8c3f3fa24
|