{"id":13771995,"url":"https://github.com/tenJirka/rm-pySAS","last_synced_at":"2025-05-11T04:31:04.983Z","repository":{"id":189735300,"uuid":"681178576","full_name":"tenJirka/rm-pySAS","owner":"tenJirka","description":"Python library for easy development of apps for reMarkable tablet in Python.","archived":false,"fork":false,"pushed_at":"2023-08-25T11:24:34.000Z","size":20,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-20T09:44:48.425Z","etag":null,"topics":["remarkable-tablet"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tenJirka.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-21T12:48:26.000Z","updated_at":"2025-03-07T20:56:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"3d599efc-76fa-4e10-804d-155697450ba3","html_url":"https://github.com/tenJirka/rm-pySAS","commit_stats":null,"previous_names":["tenjirka/rm-pysas"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenJirka%2Frm-pySAS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenJirka%2Frm-pySAS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenJirka%2Frm-pySAS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tenJirka%2Frm-pySAS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tenJirka","download_url":"https://codeload.github.com/tenJirka/rm-pySAS/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253518941,"owners_count":21921074,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["remarkable-tablet"],"created_at":"2024-08-03T17:00:58.568Z","updated_at":"2025-05-11T04:31:03.579Z","avatar_url":"https://github.com/tenJirka.png","language":"Python","funding_links":[],"categories":["Other"],"sub_categories":["Template Builders"],"readme":"#  rm-pySAS - Python library for easy development of apps for reMarkable tablet in Python.\n\nThe goal of this library is to make it as easy as possible to create applications for reMarkable tablet using Python. \n\n**It works as a wrapper around [SAS](https://rmkit.dev/apps/sas) and it must be installed separately.**\n\nAll types of widgets are assumed from SAS and all have same behavior. It's good idea to read about them before using this library  [here](https://rmkit.dev/apps/sas/spec).\n\n## Dependencies\n\n- Simple  -  SAS (simple app script) package\n- Python3\n- pip\n- display - for reMarkable 2\n\nAll dependencies can be install via [Toltec](https://toltec-dev.org/) with command:\n\n```bash\nopkg install python3 simple python3-pip #display\n```\n\n## Installation\n\n### From PIP\n\n```bash\npip install rm_pysas\n```\n\n### Build from source\n\n1. Download repository and enter it's directory\n\n   ```bash\n   $ git clone https://github.com/tenJirka/rm-pySAS.git\n   $ cd rm-pySAS\n   ```\n\n2. Install building package `build`\n\n   ```bash\n   $ python3 -m pip install --upgrade build\n   ```\n\n3. Create package\n\n   ```bash\n   $ python3 -m build\n   ```\n\n   Package files will be located in `dist/` file\n\n4. Install package\n\n   ```bash\n   $ python3 -m pip install dist/rm_pysas-*-py3-none-any.whl\n   ```\n\n## Uninstallation\n\n```bash\npython3 -m pip uninstall rm_pysas\n```\n\n## Good to know\n\nThis modules tries to edit entered text that will be displayed to prevent Simple from crash or skip letters. See this [issue](https://github.com/rmkit-dev/rmkit/issues/202).\n\nIt automatically adds `.` when text ends with some problem letter and automatically convert upper case problem letters to lower case.\n\nThis behavior can't be turn off for now and will removed when this issue will be solved.\n\n## Examples\n\nAll examples can be found in `examples/` directory.\n\n### Simple two buttons screen:\n\n```python\nfrom rm_pySAS import *\n\n# Create object representing current scene on display\nscene = Scene()\n\n# Add text label to current scene on coordinates x = 500, y = 400, weight = 100 and height = 50\n# Text of the label is \"Testing scene\", font size is 40 and text is alight to center\n# All last three parameters are optional\nscene.add(Label(500, 400, 100, 50, \"Testing scene\", fontSize=40, justify=\"center\"))\n\n# Add exit button to current scene with id=exit\n# When no fontSize or justify is specified, it assume last value given from previous\n# widgets or default SAS will be used.\nscene.add(Button(300, 800, 100, 50 , \"Exit\", id=\"exit\"))\n\n# Create second button, that will do anything.\nscene.add(Button(800, 800, 100, 50, \"Button that does nothing\", id=\"button\"))\n\n# Creating event loops tha will end only when exit button is clicked\nwhile(True):\n    scene.display()\n\n    # scene.input represent output from SAS and is actually scripts input\n    # It's list of id of widget interacted with and, if exists, value entered.\n\n    # When exit button is pressed, the cycle will break.\n    if scene.input[0] == \"exit\":\n        break\n```\n\nOn the reMarkable tablet it look like this:\n\n\u003cimg src=\"images/two_buttons_screen.png\" style=\"zoom:75%;\" /\u003e\n\n### reGenda\n\n[reGenda](https://github.com/tenJirka/reGenda) is agenda app for reMarkable based on this module. You can look at it to see how this module can be  used.\n## Documentation\n\nDocumentation can be found [here](https://github.com/tenJirka/rm-pySAS/wiki/Documentation).\n\n## Credits\n\n- [rmkit](https://github.com/rmkit-dev/rmkit) - reMarkable app framework on which this library stands","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FtenJirka%2Frm-pySAS","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FtenJirka%2Frm-pySAS","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FtenJirka%2Frm-pySAS/lists"}