Skip to main content

CCS command documentation helper

License CI PyPI

List the available commands information such as the name, the level, the type and the description.

Usage

parse

Use the command-line tool ccsdoc to list the commands and configuration parameters either on a given file or in a directory.

  • on a single file
    ccsdoc parse --path JavaFile.java
    
  • on a full directory to process recursively all .java files
    ccsdoc parse --path java_project_dir
    

Commands or configuration parameters can be output to a directory.

ccsdoc parse --path JavaFile.java --to javafile_commands.csv

By default, both commands and configuration parameters are returned. In case only one of them is desired, pass in the corresponding flag: --commands or --params.

Use ccsdoc parse -h for details about the available options.

convert

The CSV table containing the commands can be converted to the desired format using pandoc

# e.g. here to Microsoft Word
ccsdoc convert javafile_commands.csv --to docx

Examples

Working examples

$ ccsdoc parse --path simulation/SimuEPOSController.java
SimuEPOSController: simulation/SimuEPOSController.java

Command[name=setPosition, type=ACTION, level=ENGINEERING1, desc='For simulator only : update position with a position given as argument.', args=(int actualPosition)]
Command[name=checkFault, type=QUERY, level=ENGINEERING1, desc='Check if the controller is in fault.']
Command[name=enableAndWriteRelativePosition, type=ACTION, level=ENGINEERING3, desc='Enable controller and go to relative position. Doesn't check condition. Danger !!!!', args=(int pos)]
$ ccsdoc parse --path Autochanger.java --params
Autochanger: Autochanger.java

ConfigurationParameter[name=timeToUpdateProtectionSystem, type=long, desc='Time to wait until protection system signals are updated', category=autochanger, units=milliseconds, range=[UNDEFINED, UNDEFINED]]
ConfigurationParameter[name=waitTimeForBrakeOC, type=int, desc='Time to wait between activatebrake and disableoperation for online clamps', category=autochanger, units=milliseconds, range=[UNDEFINED, UNDEFINED]]
ConfigurationParameter[name=waitTimeForBrakeLR, type=int, desc='Time to wait between activatebrake and disableoperation for linear rails', category=autochanger, units=milliseconds, range=[UNDEFINED, UNDEFINED]]

Missing argument example

$ ccsdoc parse --path SimuLoaderStandalonePlutoGateway.java
SimuLoaderStandalonePlutoGateway:
=> simulation/SimuLoaderStandalonePlutoGateway.java: issue at line 39: Missing command argument 'description'.

Installation

pip install ccsdoc

Author

Alexandre Boucaud aboucaud@apc.in2p3.fr (CNRS/IN2P3)

License

BSD 3-Clause license, see the LICENSE file for more information

Metadata

Release files for ccsdoc 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ccsdoc 0.2.0
File Size Uploaded Provenance
ccsdoc-0.2.0.tar.gz 16.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ccsdoc 0.2.0
File Interpreter ABI Platform
ccsdoc-0.2.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 30.0 kB

Release files / ccsdoc-0.2.0.tar.gz

Download URL ccsdoc-0.2.0.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
58ebff4392e233f8213f9971f42b2dfc03f4d3c42899713333ddb2c9bfccc587
BLAKE2b-256 checksum
How to use checksums
fd5cbdde3a6da8eab6390351bf290a0ae71d14c1e25fd1f3fc0e67b8990ad7fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Release files / ccsdoc-0.2.0-py2.py3-none-any.whl

Download URL ccsdoc-0.2.0-py2.py3-none-any.whl
Size 13.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
42a7545a36b3b6fb1cb048f9b3722295acc956ed739b1a6bf89fd533c552129b
BLAKE2b-256 checksum
How to use checksums
eefecce47409f5242fad20cca12e63610fcb1277453e6949eb77f0d3c87cb08a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Security for ccsdoc 0.2.0

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page