Skip to main content

Opvia Scripts

CI codecov

This repo is used to build custom cards on the Opvia platform.

Developing

This project requires Poetry version 1.2.2 or newer and Python 3.9.x.

Install Poetry and pyenv:

curl -sSL https://install.python-poetry.org | python3 -
brew install pyenv

and then follow instructions from pyenv init to setup your shell. Once that's done, install the correct version of python and set up poetry:

pyenv install 3.9 && pyenv local 3.9 && poetry env use python3.9

You can then use poetry as usual to install your dependencies:

poetry install

If you are using VSCode, it will notice that poetry has created a new virtualenv and prompt you to use it. If it doesn't, you can cmd+shift+p -> Python: Select Interpreter -> Python 3.9.15 ('.venv': poetry) ./venv/bin/python at any point. If you then open up a new shell, vscode will automatically activate this venv for you.

PRs made to this repo require approval from another developer. There should be reasonable tests for all functionality. Tests should protect backwards-compatibility of all of our changes.

New changes should be accompanied by appropriate updates to the docs, covering:

  • Relevant class and function definitions for custom card writers
  • Simple examples covering installed script functionality
  • Independently readable in-app scripting versions of the same examples

Useful Commands

Note: if you are not inside the virtual environment created by poetry, you may need to use poetry run poe instead of poe

  • poe autoformat - Autoformat code
  • poe lint - Linting
  • poe test - Run Tests
  • poe docs - Build docs

Release

Release a new version by manually running the release action on GitHub with a 'major', 'minor', or 'patch' version bump selected. This will create an push a new semver tag of the format v1.2.3.

Pushing this tag will trigger an action to release a new version of your library to PyPI.

Optionally create a release from this new tag to let users know what changed.

Metadata

Release files for opvia-scripts 1.5.3

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

Source distribution (sdist)

Source distribution for opvia-scripts 1.5.3
File Size Uploaded
opvia_scripts-1.5.3.tar.gz 19.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for opvia-scripts 1.5.3
File Interpreter ABI Platform
opvia_scripts-1.5.3-py3-none-any.whl Python 3 none any Details

Total release size: 39.8 kB

Release files / opvia_scripts-1.5.3.tar.gz

Download URL opvia_scripts-1.5.3.tar.gz
Size 19.2 kB
Tags Source
SHA-256 checksum
How to use checksums
f5b07f11d50e1f94cbaae527793f1865af2e1edcf2068ca7213356cbcbef24ba
BLAKE2b-256 checksum
How to use checksums
07453579da38f63b18ab8bd2f21f3933121866da2354e35e5075a682b8a0a3a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.9.15 Linux/5.15.0-1023-azure

Release files / opvia_scripts-1.5.3-py3-none-any.whl

Download URL opvia_scripts-1.5.3-py3-none-any.whl
Size 20.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f460f2005253a16ada1bee086b49f33b8a036d7c349520bef989486566f618c8
BLAKE2b-256 checksum
How to use checksums
e2c19fe14d48c13963fc1458157e341f98e9a9f62a8a29544bc2c558bd60f815
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.2.2 CPython/3.9.15 Linux/5.15.0-1023-azure

Release history Release notifications | RSS feed

This release

1.5.3 This release

2 release files

1.4.0

1 release file

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

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