Skip to main content

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

Metadata

Release files for ops-py-example-code 1.3.12

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

Source distribution (sdist)

Source distribution for ops-py-example-code 1.3.12
File Size Uploaded
ops_py_example_code-1.3.12.tar.gz 3.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ops-py-example-code 1.3.12
File Interpreter ABI Platform
ops_py_example_code-1.3.12-py3-none-any.whl Python 3 none any Details

Total release size: 7.6 kB

Release files / ops_py_example_code-1.3.12.tar.gz

Download URL ops_py_example_code-1.3.12.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
01acdc551fb7f10c6963a74e76571ec15a99863f774e7b00300ac11d4ee76d71
BLAKE2b-256 checksum
How to use checksums
17303bb3b6cef2f50c84fc5e3c9b3452667c1392b29e4d85770f9d48db838138
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 22, 2025.

Transparency log

Release files / ops_py_example_code-1.3.12-py3-none-any.whl

Download URL ops_py_example_code-1.3.12-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8dc0c370f081903b2b52032a5e436c9e395ce3169323d38b452f40214ecec4e1
BLAKE2b-256 checksum
How to use checksums
9c6e40814d7da16fa255feef8b44cb7c73866fe62f695226fa2abba4009c9b56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 22, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.3.12 This release

2 release files

1.3.11

2 release files

1.3.10

2 release files

1.3.9

2 release files

1.3.8

2 release files

1.3.7

2 release files

1.3.6

2 release files

1.3.5

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.7

2 release files

0.0.3

2 release files

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