Skip to main content

Code example

Project description

example-code

This example code is simply to demonstrate how Open Source Python code should be written, documented and structured.
The file structure should be organized as of the following:

src/
├─ requirements.txt
├─ simple_service/
│  ├─ __init__.py
│  ├─ simple_service.py
README.md
LICENSE

How the code should be written and documented

The code should include comments and proper documentation. Use Docstrings

Please refer to the documentation in the simple_service.py file of this package and to Documenting Python Code: A Complete Guide.

To write proper and understandable code, for you and for others to read, you may also refer to How to Write Beautiful Python Code With PEP 8

How to build and distribute the code

Please refer to the ops-py-generate-pyproject documentation.

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

ops-py-example-code-1.3.6.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

ops_py_example_code-1.3.6-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

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