Name | phare JSON |
Version |
0.0.3
JSON |
| download |
home_page | |
Summary | Asynchronous and ergonomic Project Lighthouse client library |
upload_time | 2023-12-23 18:20:42 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.9 |
license | MIT License Copyright (c) 2023 fwcd Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
project-lighthouse
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Phare
[](https://pypi.org/project/phare)
[](https://github.com/fwcd/phare/actions/workflows/build.yml)
An asynchronous and ergonomic client library for the Project Lighthouse API.
## Example
```python
import asyncio
import numpy as np
import os
from phare.auth import Auth
from phare.lighthouse import Lighthouse
from phare.constants import LIGHTHOUSE_FRAME_SHAPE, LIGHTHOUSE_URL
async def main():
user = os.environ['LIGHTHOUSE_USER']
token = os.environ['LIGHTHOUSE_TOKEN']
url = os.environ.get('LIGHTHOUSE_URL', LIGHTHOUSE_URL)
async with await Lighthouse.connect(Auth(user, token), url) as lh:
frame = np.random.randint(0, 255, size=LIGHTHOUSE_FRAME_SHAPE, dtype=np.uint8)
await lh.put_model(frame)
asyncio.run(main())
```
Raw data
{
"_id": null,
"home_page": "",
"name": "phare",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": "",
"keywords": "project-lighthouse",
"author": "",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/e9/57/f53fb0bf59ead14eddb4b23e0514dbec947f18fce6860eb54ce023bb5501/phare-0.0.3.tar.gz",
"platform": null,
"description": "# Phare\n\n[](https://pypi.org/project/phare)\n[](https://github.com/fwcd/phare/actions/workflows/build.yml)\n\nAn asynchronous and ergonomic client library for the Project Lighthouse API.\n\n## Example\n\n```python\nimport asyncio\nimport numpy as np\nimport os\n\nfrom phare.auth import Auth\nfrom phare.lighthouse import Lighthouse\nfrom phare.constants import LIGHTHOUSE_FRAME_SHAPE, LIGHTHOUSE_URL\n\nasync def main():\n user = os.environ['LIGHTHOUSE_USER']\n token = os.environ['LIGHTHOUSE_TOKEN']\n url = os.environ.get('LIGHTHOUSE_URL', LIGHTHOUSE_URL)\n\n async with await Lighthouse.connect(Auth(user, token), url) as lh:\n frame = np.random.randint(0, 255, size=LIGHTHOUSE_FRAME_SHAPE, dtype=np.uint8)\n await lh.put_model(frame)\n\nasyncio.run(main())\n```\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2023 fwcd Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "Asynchronous and ergonomic Project Lighthouse client library",
"version": "0.0.3",
"project_urls": {
"Homepage": "https://github.com/fwcd/phare",
"Repository": "https://github.com/fwcd/phare"
},
"split_keywords": [
"project-lighthouse"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e957f53fb0bf59ead14eddb4b23e0514dbec947f18fce6860eb54ce023bb5501",
"md5": "7016cd3d109b00a75f1fdf9441cc5b06",
"sha256": "670b4b91936056c134a49fda83182d8c088d87ea142913867f9adb279bb3d9e0"
},
"downloads": -1,
"filename": "phare-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "7016cd3d109b00a75f1fdf9441cc5b06",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 5722,
"upload_time": "2023-12-23T18:20:42",
"upload_time_iso_8601": "2023-12-23T18:20:42.619065Z",
"url": "https://files.pythonhosted.org/packages/e9/57/f53fb0bf59ead14eddb4b23e0514dbec947f18fce6860eb54ce023bb5501/phare-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-23 18:20:42",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "fwcd",
"github_project": "phare",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "phare"
}