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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01acdc551fb7f10c6963a74e76571ec15a99863f774e7b00300ac11d4ee76d71
|
|
| MD5 |
acacda47cbaf87a64e1b537c81f4ca4a
|
|
| BLAKE2b-256 |
17303bb3b6cef2f50c84fc5e3c9b3452667c1392b29e4d85770f9d48db838138
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ops_py_example_code-1.3.12.tar.gz -
Subject digest:
01acdc551fb7f10c6963a74e76571ec15a99863f774e7b00300ac11d4ee76d71 - Sigstore transparency entry: 164406782
- Sigstore integration time:
-
Permalink:
equinor/ops-py-example-code@c6ab8ee59e578e9496bbb248b3bf4c0b79f8a724 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/equinor
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_pypi.yml@c6ab8ee59e578e9496bbb248b3bf4c0b79f8a724 -
Trigger Event:
pull_request
-
Statement type:
File details
Details for the file ops_py_example_code-1.3.12-py3-none-any.whl.
File metadata
- Download URL: ops_py_example_code-1.3.12-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8dc0c370f081903b2b52032a5e436c9e395ce3169323d38b452f40214ecec4e1
|
|
| MD5 |
7cf16b1b7963013c649afeb5a4f23a73
|
|
| BLAKE2b-256 |
9c6e40814d7da16fa255feef8b44cb7c73866fe62f695226fa2abba4009c9b56
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ops_py_example_code-1.3.12-py3-none-any.whl -
Subject digest:
8dc0c370f081903b2b52032a5e436c9e395ce3169323d38b452f40214ecec4e1 - Sigstore transparency entry: 164406785
- Sigstore integration time:
-
Permalink:
equinor/ops-py-example-code@c6ab8ee59e578e9496bbb248b3bf4c0b79f8a724 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/equinor
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build_pypi.yml@c6ab8ee59e578e9496bbb248b3bf4c0b79f8a724 -
Trigger Event:
pull_request
-
Statement type: