phyling 7.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- phyling-7.0.0/LICENSE.txt +21 -0
- phyling-7.0.0/MANIFEST.in +2 -0
- phyling-7.0.0/PKG-INFO +21 -0
- phyling-7.0.0/README.md +41 -0
- phyling-7.0.0/phyling/__init__.py +0 -0
- phyling-7.0.0/phyling/api/__init__.py +3 -0
- phyling-7.0.0/phyling/api/api.py +657 -0
- phyling-7.0.0/phyling/api/phylingSocket.py +106 -0
- phyling-7.0.0/phyling/api/realtime.py +294 -0
- phyling-7.0.0/phyling/api/record.py +56 -0
- phyling-7.0.0/phyling/api/user.py +46 -0
- phyling-7.0.0/phyling/api/utils.py +78 -0
- phyling-7.0.0/phyling/decoder/__init__.py +0 -0
- phyling-7.0.0/phyling/decoder/calibration_use.py +339 -0
- phyling-7.0.0/phyling/decoder/decoder.py +52 -0
- phyling-7.0.0/phyling/decoder/decoder_utils.c +29250 -0
- phyling-7.0.0/phyling/decoder/decoder_utils.pyx +672 -0
- phyling-7.0.0/phyling/phyling_utils.py +113 -0
- phyling-7.0.0/phyling.egg-info/PKG-INFO +21 -0
- phyling-7.0.0/phyling.egg-info/SOURCES.txt +27 -0
- phyling-7.0.0/phyling.egg-info/dependency_links.txt +1 -0
- phyling-7.0.0/phyling.egg-info/requires.txt +9 -0
- phyling-7.0.0/phyling.egg-info/top_level.txt +2 -0
- phyling-7.0.0/pyproject.toml +8 -0
- phyling-7.0.0/requirements.txt +14 -0
- phyling-7.0.0/setup.cfg +4 -0
- phyling-7.0.0/setup.py +34 -0
- phyling-7.0.0/tests/__init__.py +0 -0
- phyling-7.0.0/tests/test_base.py +6 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Phyling SAS
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
phyling-7.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: phyling
|
|
3
|
+
Version: 7.0.0
|
|
4
|
+
Summary: Phyling public package
|
|
5
|
+
Home-page: https://github.com/phyling-sport/phyling
|
|
6
|
+
License: MIT
|
|
7
|
+
License-File: LICENSE.txt
|
|
8
|
+
Requires-Dist: numpy==1.24.4
|
|
9
|
+
Requires-Dist: ujson
|
|
10
|
+
Requires-Dist: Cython
|
|
11
|
+
Requires-Dist: ipympl
|
|
12
|
+
Requires-Dist: python-dotenv
|
|
13
|
+
Requires-Dist: urllib3
|
|
14
|
+
Requires-Dist: aiohttp
|
|
15
|
+
Requires-Dist: python-socketio
|
|
16
|
+
Requires-Dist: bleak
|
|
17
|
+
Dynamic: home-page
|
|
18
|
+
Dynamic: license
|
|
19
|
+
Dynamic: license-file
|
|
20
|
+
Dynamic: requires-dist
|
|
21
|
+
Dynamic: summary
|
phyling-7.0.0/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Lib phyling
|
|
2
|
+
|
|
3
|
+
## Installation
|
|
4
|
+
|
|
5
|
+
Installez le package phyling :
|
|
6
|
+
```shell
|
|
7
|
+
pip install phyling
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Installez depuis les sources :
|
|
11
|
+
```shell
|
|
12
|
+
pip install -e .
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Exemples
|
|
16
|
+
|
|
17
|
+
Cette partie regroupe plusieurs exemples :
|
|
18
|
+
- Décoder un enregistrement brut
|
|
19
|
+
- Se connecter et extraire les données d'un NanoPhyling
|
|
20
|
+
- Se connecter à l'API (via la librairie Python ou de simples fichiers HTML/JS). Chaque exemple pointe directement vers un fichier du dépôt pour pouvoir reproduire le scénario.
|
|
21
|
+
|
|
22
|
+
### Décoder un fichier brut Phyling
|
|
23
|
+
- `phyling/examples/Analyse/decoder.ipynb` : notebook qui charge un enregistrement `.txt` brut, décrit les trames disponibles et les convertit en tableaux/pandas exploitables pour vos analyses.
|
|
24
|
+
|
|
25
|
+
### Récupérer les données d'un NanoPhyling
|
|
26
|
+
- `examples/Nano-Phyling/nanophyling.ipynb` : notebook qui se connecte à un Nano-Phyling, fait une acquisition de X secondes puis affiche les données
|
|
27
|
+
|
|
28
|
+
### Se connecter à l'API Phyling
|
|
29
|
+
La documentation de l'API Phyling est disponible ici : [docs.phyling.fr/api](https://docs.phyling.fr/api/)
|
|
30
|
+
|
|
31
|
+
**Librairie Python**
|
|
32
|
+
- `phyling/examples/Phyling API/Phyling python lib/realtime.ipynb` : exemple de notebook pour se connecter à l'API, lister les devices connectés en temps réel puis récupérer leurs données.
|
|
33
|
+
- `phyling/examples/Phyling API/Phyling python lib/api.ipynb` : exemple de notebook pour se connecter à l'API, lister les utilisateurs et les enregistrements puis télécharger un enregistrement.
|
|
34
|
+
|
|
35
|
+
**Fichiers HTML/JS bruts**
|
|
36
|
+
Dans le dossier `examples/Phyling API/RAW API examples` :
|
|
37
|
+
- `minimal_oauth.py` : Exemple minimal de connexion OAuth. Pour le lancer, installez les dépendances puis `python minimal_oauth.py -h`
|
|
38
|
+
- `minimal_apikey.html` : Exemple minimal de connexion via clé API. Pour le lancer, mettez à jour dans le code `apiUrl`, `apiKey`, `clientId`, `deviceNumber` (numéro de device de test) puis double-cliquez sur le fichier pour l'ouvrir.
|
|
39
|
+
|
|
40
|
+
- `realtime.html` : tableau de bord multi-devices. Il gère l'authentification complète, la persistance des tokens, le merge `settings` + `status`, la sélection et l'envoi périodique des clés temps réel, ainsi que l'affichage des indicateurs et courbes par device.
|
|
41
|
+
- `single-device.html` : outil ciblé sur un seul device. Il montre comment se connecter rapidement, récupérer les settings, fusionner les statuts, lancer des RPC via `features` et inspecter les payloads bruts. Idéal pour du debugging ou des démonstrations rapides.
|
|
File without changes
|