Skip to main content

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


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.3.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

ops_py_example_code-1.3.3-py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 3

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