Set of tools used in internal Rokubun projects
Project description
pyrok-tools
Python tools used in internal Rokubun projects. This repository contains the following modules:
logger
, a module that extends basic Python logginggeodetic
, to perform basic geodetic transformation (Cartesian to Geodetic, Cartesian to Local Tangential Plane, ...)
Installation
pip install roktools
Modules
Logger
Example of how to use the logger module:
>>> from roktools import logger
>>> logger.set_level("DEBUG")
>>> logger.debug("Debug message")
2020-05-05 18:23:55,688 - DEBUG - Debug message
>>> logger.warning("Warning message")
2020-05-05 18:24:11,327 - WARNING - Warning message
>>> logger.info("Info message")
2020-05-05 18:24:26,021 - INFO - Info message
>>> logger.error("Error message")
2020-05-05 18:24:36,090 - ERROR - Error message
>>> logger.critical("Critical message")
2020-05-05 18:24:43,562 - CRITICAL - Critical message
>>> logger.exception("Exception message", ValueError("Exception message")
2020-05-05 18:25:11,360 - CRITICAL - Exception message
ValueError: Exception message
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/alexlopez/Work/00.General/01.Software/py-roktools/roktools/logger.py", line 46, in exception
raise exception
ValueError: Exception message
Deployment to PyPi
The project is published automatically using internal Gitlab CI on each commit to master to PyPi repository roktools
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.
See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for roktools-5.16.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c64e04f7ed8ff29e9c8800ee86ff5da7bce4518aec7e199953e58bc5608854a |
|
MD5 | 18b0a34f4b3b085ad8e1962860b136d6 |
|
BLAKE2b-256 | 88b1cbdbd847819b581328198a2f35eff5b73da13059652ddc8b9654ea7c52ef |