JUSTRPA LIBRARY
Installation
pip install justrpa
Get started
How to use this library
Define your Browser class
You can inherit from TaskBrowser to create your own browser object for browser tasks.
from justrpa.browser import TaskBrowser
class TestBrowser(TaskBrowser):
def before_task_run(self, task_context:dict):
print("real before task implementation.")
return task_context
def do_test_task(self, task_params:dict):
print("Do real task")
print(task_params)
return task_params
Run Task Executer
from justrpa.task import TaskExecuter
env = {"account":"TestAccount", "taskname":"test_task", "new_browser":1, "headless":1}
task_params = {"United States": [{"test":"test"}]}
t = TaskExecuter("test_task", "tests.executer_test.TestBrowser", "do_test_task", env, task_params)
task_context = t.run()
Run Task Handler
import argparse
from justrpa.task import TaskHandler
def run_task(taskname:str):
handler = TaskHandler()
handler.run(taskname)
def main():
ap = argparse.ArgumentParser()
ap.add_argument("task",default="", nargs="?", help="task name to run")
args = ap.parse_args()
task_name = args.task
run_task(task_name)
Robot Example
Metadata
Release files for justrpa 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| justrpa-0.1.3.tar.gz | 23.1 kB | Without provenance | Details for justrpa-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| justrpa-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for justrpa-0.1.3-py3-none-any.whl |
Total release size: 49.5 kB
Release files / justrpa-0.1.3.tar.gz
| Download URL | justrpa-0.1.3.tar.gz |
|---|---|
| Size | 23.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a3c0893ef39d486b26e0b85f4e36586aebcd8c022fa973954d83cb939954704
|
|
BLAKE2b-256 checksum How to use checksums |
c6f5ed0ec31a69a5f7948aa1c113d38b6eda10883e7b608b46f0c43aaac92259
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.4
|
Release files / justrpa-0.1.3-py3-none-any.whl
| Download URL | justrpa-0.1.3-py3-none-any.whl |
|---|---|
| Size | 26.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3aa49d787fafa3dfe91aaf4f1ff5db1fe0fd5a330f24dd040496f1961e9d16aa
|
|
BLAKE2b-256 checksum How to use checksums |
3b29fd7e4e5fd6d5d42e2c16f0f2cea82e2de7f334897b490fc17c44a34824d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.4
|
Security for justrpa 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.