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.7.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

ops_py_example_code-1.3.7-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file ops_py_example_code-1.3.7.tar.gz.

File metadata

  • Download URL: ops_py_example_code-1.3.7.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for ops_py_example_code-1.3.7.tar.gz
Algorithm Hash digest
SHA256 3872c018b2ac21a18d5462b3518c122861ddd5ad801209094c53d84ae40e93ee
MD5 5cb0dd25729f6180bff825270590dfd6
BLAKE2b-256 177ea9519d6e0e1d80ecad9e67dc519f5b65beae3f4765bbaedcb32c8e4fd5f9

See more details on using hashes here.

File details

Details for the file ops_py_example_code-1.3.7-py3-none-any.whl.

File metadata

File hashes

Hashes for ops_py_example_code-1.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6d0e3b9ef341da1b78e34f2e91b8fd093d46da28842248e98a5f14e2b9325501
MD5 df9ef5f4e07733cdb6b986c92bb9d8c3
BLAKE2b-256 f27ffcce1c0c70ac5f2394baefa19d4728a78746567369cc3376f6b47187425b

See more details on using hashes here.

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