Skip to main content

SDK for creating and registering custon Orrin apps

Project description

Orrin SDK v0.0.6

The Orrrin SDK v0.0.6 is the first revolution of the Orrin SDK, and brings forth a simple Python decorator for developers creating small-scale apps to be deployed on the Orrin platform.

Orrin SDK is the bridge behind backend action and UI manipulation.

Why Python/Node.js mix?

Python is used for simplicity on the backend side of things and compatibility, and node.js is utilized for the frontend as it enables flexibility, and also compatibility.

Orrin Web is also based in node.js, so sustaining that stack for the web platform just simply makes sense.

Orrin SDK actions

The current version offers only one decorator: action. You call this on top of any given function that will be used in your front end code to perform an activity and manipulate the UI.

Example:

from orrinsdk import OrrinSDK

orrin_sdk = OrrinSDK(developer_api_key='<your_developer_api_key>')

@orrin_sdk.action('say_hi')
def say_hi():
    return {'message': 'Hello, world!'}

And now, in your UI, if you utilize this action (using a node.js based SDK) you can utilize the result from this function to determine how to manipulate your UI.

Extra metadata

There will eventually be a elaborate developer platform for you to have direct access to all sorts of data regarding the apps you release and maintain.

With that, you might need to have extra metadata for actions in your backend, especially if your backend grows. (remember to keep your apps small scale; Orrin is not a platform for entire Instagram clones.)

You can add additional metadata about actions like so:

from orrinsdk import OrrinSDK

orrin_sdk = OrrinSDK(developer_api_key='<your_developer_api_key>')

@orrin_sdk.action('say_hi', extra_metadata={'reason': 'This action is just a test. Do not use in production!'})
def say_hi():
    return {'message': 'Hello, World!'}

There is no limit or requirement to what is in extra_metadata dictionary. Have whatever you need to ensure you understand that action.

One last thing!

Ensure you run your script. By running your script, you effectively register all actions and store the entirety of your backend code.

If you have no functions effectively decorated with action, your entire codebase will be "dead" (have no applicable usability on the Orrin platform)

New versions of Orrin SDK are in the working

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

orrin_sdk-0.0.6.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orrin_sdk-0.0.6-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file orrin_sdk-0.0.6.tar.gz.

File metadata

  • Download URL: orrin_sdk-0.0.6.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for orrin_sdk-0.0.6.tar.gz
Algorithm Hash digest
SHA256 1ba0e4944180adb330de9f407a6245a86f0e7446a62ea8a1f6d45034d404be9e
MD5 380297881779faf5d16de06e66425b90
BLAKE2b-256 ba8b728de2aa6744f0117a78b9de62b22c3816da54be66d7ea7eeea3c7538f36

See more details on using hashes here.

File details

Details for the file orrin_sdk-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: orrin_sdk-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.10

File hashes

Hashes for orrin_sdk-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 825662966ccba13f6baaa2e9708122565e32deb125ecccb09b2e9b792fb99694
MD5 03b79c1f0526e26081e08f2237e97e71
BLAKE2b-256 09ab0c9de7eaecea3a58665a8e8f0b5920012d4fa961efe46449d99334af181a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page