initiated venv, installed FreeSimpleGUI and PySerial
This commit is contained in:
@ -0,0 +1 @@
|
||||
pip
|
||||
@ -0,0 +1,20 @@
|
||||
Copyright (c) 2007 - 2022 Michael Twomey
|
||||
|
||||
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.
|
||||
@ -0,0 +1,134 @@
|
||||
Metadata-Version: 2.1
|
||||
Name: iso8601
|
||||
Version: 2.1.0
|
||||
Summary: Simple module to parse ISO 8601 dates
|
||||
Home-page: https://github.com/micktwomey/pyiso8601
|
||||
License: MIT
|
||||
Author: Michael Twomey
|
||||
Author-email: mick@twomeylee.name
|
||||
Requires-Python: >=3.7,<4.0
|
||||
Classifier: License :: OSI Approved :: MIT License
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Programming Language :: Python :: 3.7
|
||||
Classifier: Programming Language :: Python :: 3.8
|
||||
Classifier: Programming Language :: Python :: 3.9
|
||||
Classifier: Programming Language :: Python :: 3.10
|
||||
Classifier: Programming Language :: Python :: 3.11
|
||||
Project-URL: Documentation, https://pyiso8601.readthedocs.io/en/latest/
|
||||
Project-URL: Repository, https://github.com/micktwomey/pyiso8601
|
||||
Description-Content-Type: text/x-rst
|
||||
|
||||
Simple module to parse ISO 8601 dates
|
||||
|
||||
`pip install iso8601`
|
||||
|
||||
Documentation: https://pyiso8601.readthedocs.org/
|
||||
|
||||
PyPI: https://pypi.org/project/iso8601/
|
||||
|
||||
Source: https://github.com/micktwomey/pyiso8601
|
||||
|
||||
This module parses the most common forms of ISO 8601 date strings (e.g. 2007-01-14T20:34:22+00:00) into datetime objects.
|
||||
|
||||
>>> import iso8601
|
||||
>>> iso8601.parse_date("2007-01-25T12:00:00Z")
|
||||
datetime.datetime(2007, 1, 25, 12, 0, tzinfo=<iso8601.Utc>)
|
||||
>>>
|
||||
|
||||
See the LICENSE file for the license this package is released under.
|
||||
|
||||
If you want more full featured parsing look at:
|
||||
|
||||
- https://arrow.readthedocs.io - arrow
|
||||
- https://pendulum.eustace.io - pendulum
|
||||
- https://labix.org/python-dateutil - python-dateutil
|
||||
- https://docs.python.org/3/library/datetime.html#datetime.datetime.fromisoformat - Yes, Python 3 has built in parsing too!
|
||||
|
||||
Parsed Formats
|
||||
==============
|
||||
|
||||
You can parse full date + times, or just the date. In both cases a datetime instance is returned but with missing times defaulting to 0, and missing days / months defaulting to 1.
|
||||
|
||||
Dates
|
||||
-----
|
||||
|
||||
- YYYY-MM-DD
|
||||
- YYYYMMDD
|
||||
- YYYY-MM (defaults to 1 for the day)
|
||||
- YYYY (defaults to 1 for month and day)
|
||||
|
||||
Times
|
||||
-----
|
||||
|
||||
- hh:mm:ss.nn
|
||||
- hhmmss.nn
|
||||
- hh:mm (defaults to 0 for seconds)
|
||||
- hhmm (defaults to 0 for seconds)
|
||||
- hh (defaults to 0 for minutes and seconds)
|
||||
|
||||
Time Zones
|
||||
----------
|
||||
|
||||
- Nothing, will use the default timezone given (which in turn defaults to UTC).
|
||||
- Z (UTC)
|
||||
- +/-hh:mm
|
||||
- +/-hhmm
|
||||
- +/-hh
|
||||
|
||||
Where it Differs From ISO 8601
|
||||
==============================
|
||||
|
||||
Known differences from the ISO 8601 spec:
|
||||
|
||||
- You can use a " " (space) instead of T for separating date from time.
|
||||
- Days and months without a leading 0 (2 vs 02) will be parsed.
|
||||
- If time zone information is omitted the default time zone given is used (which in turn defaults to UTC). Use a default of None to yield naive datetime instances.
|
||||
|
||||
References
|
||||
==========
|
||||
|
||||
- https://en.wikipedia.org/wiki/ISO_8601
|
||||
|
||||
- https://www.cl.cam.ac.uk/~mgk25/iso-time.html - simple overview
|
||||
|
||||
- https://web.archive.org/web/20090309040208/http://hydracen.com/dx/iso8601.htm - more detailed enumeration of valid formats.
|
||||
|
||||
Testing
|
||||
=======
|
||||
|
||||
1. `poetry install`
|
||||
2. `poetry run nox`
|
||||
|
||||
Note that you need all the pythons installed to perform a tox run (see below). pyenv helps hugely, use pyenv install for the versions you need then use 'pyenv local version ...' to link them in (the tox-pyenv plugin will pick them up).
|
||||
|
||||
Alternatively, to test only with your current python:
|
||||
|
||||
1. `poetry install`
|
||||
2. `pytest`
|
||||
|
||||
Releasing
|
||||
=========
|
||||
|
||||
1. `just prepare-release`
|
||||
2. `just do-release`
|
||||
|
||||
Supported Python Versions
|
||||
=========================
|
||||
|
||||
Tested against:
|
||||
|
||||
- Python 3.7
|
||||
- Python 3.8
|
||||
- Python 3.9
|
||||
- Python 3.10
|
||||
- Python 3.11
|
||||
- Python 3.12
|
||||
- PyPy 3
|
||||
|
||||
Python 3 versions < 3.7 are untested but should work.
|
||||
|
||||
Changes
|
||||
=======
|
||||
|
||||
See `CHANGELOG.md <https://github.com/micktwomey/pyiso8601/blob/main/CHANGELOG.md>`_.
|
||||
|
||||
@ -0,0 +1,12 @@
|
||||
iso8601-2.1.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
iso8601-2.1.0.dist-info/LICENSE,sha256=UWsCzRHnjDegT57_rdha8Eg92nqx5xXu8cyU-X3EnhM,1065
|
||||
iso8601-2.1.0.dist-info/METADATA,sha256=g8NJpaSbvGmGOyc89xV60QHsf5RqmLVCk4n8uBr5bmg,3674
|
||||
iso8601-2.1.0.dist-info/RECORD,,
|
||||
iso8601-2.1.0.dist-info/WHEEL,sha256=7Z8_27uaHI_UZAc4Uox4PpBhQ9Y5_modZXWMxtUi4NU,88
|
||||
iso8601/__init__.py,sha256=qqaIUN7W0JqewfJygGCvseHjxvC8fMofKkrzjAG40oM,150
|
||||
iso8601/__pycache__/__init__.cpython-312.pyc,,
|
||||
iso8601/__pycache__/iso8601.cpython-312.pyc,,
|
||||
iso8601/__pycache__/test_iso8601.cpython-312.pyc,,
|
||||
iso8601/iso8601.py,sha256=3xQdDIEs_kk_i6zomb1f9iWgXx7Khq5Qiu82-ukw0nY,4992
|
||||
iso8601/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
iso8601/test_iso8601.py,sha256=xmh2NXMm1cXtUtcFkFXEHE2J23kWRdH60Ft_XT-XMu4,10608
|
||||
@ -0,0 +1,4 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: poetry-core 1.5.2
|
||||
Root-Is-Purelib: true
|
||||
Tag: py3-none-any
|
||||
Reference in New Issue
Block a user