Code example
Project description
example-code
This repository and code are intended to function as a guide on how Python code in ops-py-* repositories should be written, documented and distributed.
The code in the ops-py-* repositories must be written as Open Source. It will be distributed to https://pypi.org/user/Equinor as PIP packages and made available to the public.
The file structure in the repo should follow the following standard:
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 simple_service.py
and to Documenting Python Code: A Complete Guide
To write proper and understandable code, for you and for others to read, please also refer to How to Write Beautiful Python Code With PEP 8
How to build and distribute the code
Please refer to the following documentation
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
Hashes for ops-py-example-code-1.3.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1c97d444b939b44bc187ee82fe07330a5d58d2ec13934765e715c10db761f40 |
|
MD5 | f7fe0b6a8bc9a6eb61743a14354663c2 |
|
BLAKE2b-256 | e38086275db534b135029f0cb7d2301d9decc171ca9a450e3e8772ce4139f6d1 |
Hashes for ops_py_example_code-1.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d900f707906f6b76b8b2e3f5bfef96183f6207c78a46029d4cc791dbb1907ede |
|
MD5 | e9c836dc99a133aec439029e5f3472fd |
|
BLAKE2b-256 | 81acc6ac63fa7bef97d77a23bb70d3a20edc77cb9431920abacc26c6e19fe2a5 |