I hereby claim:
- I am dmtmov on github.
- I am dmtmov (https://keybase.io/dmtmov) on keybase.
- I have a public key whose fingerprint is B729 52FC 0A60 7D6B 18E8 7003 4953 6323 04D0 8FA6
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/bin/env python3 | |
| """ | |
| The script exports of Pinnacle data from the given Patient sources. | |
| It takes 2 arguments: | |
| :input_path: (str) - The path to folder of Patient source files; | |
| :output_directory: (str) - The output files of this tool for Patient; | |
| Settings: |
| Running 11.94 km ███████████████████ 7.67/h | |
| Swimming 0.00 km ░░░░░░░░░░░░░░░░░░░ 0.00/h | |
| Cycling 0.00 km ░░░░░░░░░░░░░░░░░░░ 0.00/h | |
| Last month 11.94 km 2:33h |
| import urllib3 | |
| r = http.request( | |
| 'POST', | |
| 'https://example.com/createRecord', | |
| fields={ | |
| 'foo': 'bar', | |
| 'your_field': ('filename.tar.gz', open('full/path/filename.tar.gz', 'rb').read()) | |
| }) | |
| print(r.data) |
| #models.py | |
| class Task(models.Model): | |
| title = models.CharField(max_length=255) | |
| description = models.TextField() | |
| def __unicode__(self): | |
| return self.title |