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 Github Actions 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 Distribution
roktools-2.10.0.tar.gz
(16.5 kB
view hashes)
Built Distribution
roktools-2.10.0-py3-none-any.whl
(17.3 kB
view hashes)
Close
Hashes for roktools-2.10.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6642df6f6a3d2f08760fa3c270ac42a70dc67fc07a191a208b7666e85de0c4f2 |
|
MD5 | b968470d688e09418827779464dee6c1 |
|
BLAKE2b-256 | 7f9610fc72ee8ecbd9fc025a13db9d9ae93b862c7e5900f16fa81ffa43d1a959 |