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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ops_py_example_code-1.3.10.tar.gz
Algorithm Hash digest
SHA256 205708e7340a6f0ed7bdd14ae2bb8e2756d10196d3e1e874ae429870851d7582
MD5 ac4a1c7e21675665f02f7ec41e4ba241
BLAKE2b-256 6380f064413101b5e327d3d4146bd921930502022b7a8c81c958bb0894d5f2ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for ops_py_example_code-1.3.10.tar.gz:

Publisher: build_pypi.yml on equinor/ops-py-example-code

Attestations:

File details

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

File metadata

File hashes

Hashes for ops_py_example_code-1.3.10-py3-none-any.whl
Algorithm Hash digest
SHA256 65bbfcd477570776b7d3b175b954ba1abfde3048b74f2ed76e93b3e5b5be30a4
MD5 6cb2af37703744d26e79bf194fe66dbe
BLAKE2b-256 8115404cd2173dcfc5968b73dfa487bd701b3f8117a514407a8cda60f2c9d2f8

See more details on using hashes here.

Provenance

The following attestation bundles were made for ops_py_example_code-1.3.10-py3-none-any.whl:

Publisher: build_pypi.yml on equinor/ops-py-example-code

Attestations:

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