SDK for creating and registering custom Orrin apps
Project description
Orrin SDK v0.0.10
The Orrrin SDK v0.x.x are the first revolutions 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 sdk import OrrinSDK
orrin_sdk = OrrinSDK(
developer_api_key='<your_developer_api_key>', # Required
app_name='A Test App', # Required
desc='A test app that I am building to test the Orrin platform!' # Required metadata (will be displayed on the Orrin Platform)
)
def lol():
return 'You can use non-action based function in action-based functions!'
@orrin_sdk.action('test')
def test(a):
return {'message': f'test done! {a}'}
orrin_sdk.finalize() # Finalizes the configuration, and will perform all requests to create a app backend
(Don't forget .finalize() at the end of your code!)
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.
Note: After .finalize(), it can take up to 3 days for the backend configuration to be reviewed. After finalizing, your backend will be "PENDING". The other states are "DENIED" or "AUTHORIZED". Please refer to https://stellr-company.com/orrin/sdk for more information.
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 sdk import OrrinSDK
orrin_sdk = OrrinSDK(
developer_api_key='<your_developer_api_key>',
app_name='A Test App',
desc='A test app that I am building to test the Orrin platform!'
)
def lol():
return 'You can use non-action based function in action-based functions!'
@orrin_sdk.action('test', extra_metadata={'reason': 'This action is just a test. Do not use in production!'})
def test(a):
return {'message': f'test done! {a}'}
orrin_sdk.finalize()
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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file orrin_sdk-0.0.10.tar.gz.
File metadata
- Download URL: orrin_sdk-0.0.10.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dad312daa845123b62f8ffa7e7912298b529c09437ccfa426260fe2efdee01bf
|
|
| MD5 |
3354ae85d826016d1f2b4e284cd5aa14
|
|
| BLAKE2b-256 |
8814b89539141696384a8156eb10d746c1d98f57da61418b02bd078cc4890b27
|
File details
Details for the file orrin_sdk-0.0.10-py3-none-any.whl.
File metadata
- Download URL: orrin_sdk-0.0.10-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09e87f9e61552101f7a0da6f8d8a0e640103a673b3610a705769a7224538edda
|
|
| MD5 |
56b970b9978fa951a980caaa91a65cd5
|
|
| BLAKE2b-256 |
d11d6e61ad91a471c1383ff1bb188e2004391bc9db27413f12119d282a8e47eb
|