Skip to main content

Orijin SDK for client development

Project description

# Orijin-SDK for Python 3.10 Originally intended for internal use and just called python-tools, this SDK can act as a frontend client and allow you to replicate calls made by the brand platform and mobile apps. This project was built on top of the Old-Orijin data migration tool, but has since had significant overhauls.

## Package Description This repo contains the Orijin SDK for Python. This library was built for python-3.10.1

Install the latest release with pip install –upgrade orijin-sdk or clone this repo and install with pip install -e /path/to/repo/

See the scripts in /scripts/ for simple examples or the demon in /demo/ for a more in-depth guide to fully utilize this package.

## Usage

This package doesn’t have a specific usage, rather it is a collection of helpful functions to make building python apps that connect to the Orijin system easier.

See /scripts/ and /demo/ for examples.

## Development Setup

To contribute to this sdk, clone this repo and run the following from the clone’s root folder.

### Create or enter a virtual environment (Optional): ` py -m venv .venv # Run once ./venv/Scripts/activate # Run every time `

### Install requirements: ` pip install -r requirements.txt `

### Compile from source

To install the orijin-sdk from source, run: ` pip install -e . ` > Replace . with /path/to/repo to install from another directory

Go into a Python cli (run py) and test frequently that everything is working as expected during development. Run exit() or [Ctrl-Z], [enter] to leave the cli.

## Release Development Setup

These additional steps are only requiered if you’re contributing to a distributable build.

See https://packaging.python.org/en/latest/tutorials/packaging-projects/ for full instrutctions. The guide below has instructions written for Windows, though the main difference is just using the command py instead of python3.

### First Time Setup

Inside your environment, install the following additional tools:

Python Build Tool: py -m pip install –upgrade build

PyPi Upload Tool: py -m pip install –upgrade twine

And set up a second venv for testing: py -m venv testing

### Build

Increment the version number (<major>.<minor>.<patch>) in setup.py

To build a new distributable, run: ` py -m build ` > You can see your builds in the /dist/ folder, though you don’t need to use them locally.

### Test Upload

Test your build by uploading it to Test PyPi first: ` py -m twine upload --repository testpypi dist/* ` And install that upload in your testing environment: ` testing/Scripts/activate py -m pip install --index-url https://test.pypi.org/simple/ --no-deps --upgrade orijin-sdk py -m pip install -r requirements.txt `

Go into a Python cli (run py) and test everything is still working as expected.

Once you’re done testing remember to return to your project venv: .venv/Scripts/activate ### Release

Upload to PyPi: ` py -m twine upload dist/* `

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

orijin_sdk-0.1.2.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

orijin_sdk-0.1.2-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file orijin_sdk-0.1.2.tar.gz.

File metadata

  • Download URL: orijin_sdk-0.1.2.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for orijin_sdk-0.1.2.tar.gz
Algorithm Hash digest
SHA256 32eec1c9f8b7aa47ae81c90c7be00818abdc01dd636e8d89e1e6f66d76d31bfd
MD5 288958a18f6c56f7b26e7e6b0a8a0e99
BLAKE2b-256 768a86d21fba1d600cfd6b05d3b272cce40b6de47ee6e0e2cf2855005f2d7b3b

See more details on using hashes here.

File details

Details for the file orijin_sdk-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: orijin_sdk-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.2

File hashes

Hashes for orijin_sdk-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ff2af85724bcab8820fdaa60295ad51c3ca4348013f71a759fe2255f978a6738
MD5 b2f5f9c3166dc1c0d0cb8f9e49ab3531
BLAKE2b-256 a9df84c7b0838f80755616db48303e1dbf59f4f81a4b6798980c8a0547f2301d

See more details on using hashes here.

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