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.

Demo

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ops_py_example_code-1.3.12.tar.gz
Algorithm Hash digest
SHA256 01acdc551fb7f10c6963a74e76571ec15a99863f774e7b00300ac11d4ee76d71
MD5 acacda47cbaf87a64e1b537c81f4ca4a
BLAKE2b-256 17303bb3b6cef2f50c84fc5e3c9b3452667c1392b29e4d85770f9d48db838138

See more details on using hashes here.

Provenance

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

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

File hashes

Hashes for ops_py_example_code-1.3.12-py3-none-any.whl
Algorithm Hash digest
SHA256 8dc0c370f081903b2b52032a5e436c9e395ce3169323d38b452f40214ecec4e1
MD5 7cf16b1b7963013c649afeb5a4f23a73
BLAKE2b-256 9c6e40814d7da16fa255feef8b44cb7c73866fe62f695226fa2abba4009c9b56

See more details on using hashes here.

Provenance

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

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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