You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

roktools

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

roktools

Package with utilities and tools for GNSS data processing

6.10.2
PyPI
Maintainers
1

pyrok-tools

Python tools used in internal Rokubun projects. This repository contains the following modules:

  • logger, a module that extends basic Python logging
  • geodetic, to perform basic geodetic transformation (Cartesian to Geodetic, Cartesian to Local Tangential Plane, ...)

Installation

To make sure that the extensions are installed along with the package, run

pip install roktools*.whl

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

It uses semantic versioning and conventional commits to set the version and semantic-release as versioning tool.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts