semvec/pypi-packages huggingface dataset:
kios 0.1
Tool to collect and store TCP/UDP port usage data
License: Apache-2.0
Requires Python: >=3.8.1

Kios
====

.. contents::

Introduction
------------

Kios is a tool to collect and store TCP/UDP port usage data. Currently Kios supports netstat on
Windows platform as the only source of port data and SQLite as the only database backend.

Ports bound to loopback interfaces are ignored.

Usage
-----

Add application and associate executable to track (more than one executable
per app is supported)::

    kios add Application1 application1.exe

Then use command *scan* to periodically execute *netstat*, look for
ports listened on by *application1.exe* and save protocol/number data, associating
it with *Application1*. Use optional positional argument next to *scan* to
override default scan interval, which is 5 seconds::

    kios scan 10

**Note**, that this command requires elevated privileges. If it is not desirable to run
Kios as administrator (it is not), then use *netstat* output captured in a file with
command *import*::

    kios import D:\out.txt

To capture output in a compatible format, execute *netstat* with arguments given below::

    netstat -a -b -n > C:\out.txt

Use command *list* to print all tracked applications::

    C:\>kios list
    Known applications:
     Application1

Command *show* is used to print all information gathered on a specified application::

    C:\>kios show Application1
    Data for Application1
    Ports:
     IPv4   TCP     1
     IPv4   UDP     2
     IPv6   TCP     3
     IPv6   UDP     4
    Executables:
     application1.exe

It is possible to un-track executable with command *remove*::

    kios remove application1.exe

and delete **all** information associated with a specified app using command *purge*::

    kios purge Application1

To get information about optional arguments not mentioned here, use

::

    kios --help

and

::

    kios COMMAND --help

License
-------

Kios is released under version 2.0 of the `Apache License`_.

.. _Apache License: http://www.apache.org/licenses/LICENSE-2.0
ephyra 0.1
Library to help with mouse input configuration
License: Apache-2.0
Requires Python: >=3.8.1

Ephyra
========

.. contents::

Introduction
------------

Ephyra is a library to help with mouse input configuration; includes both Python and native C
(CPython, tested with Windows 10 and Visual Studio 2019 tools) implementations. It supports full rotation and same screen
ratio/distance approaches.

Usage
-----

This code shows how to get sensitivity coefficients and values for a new application or a different view within same
application as well as characteristic of a particular setup. See tests for more examples. ::

    from fractions import Fraction
    from math import radians

    from ephyra import DataHelper, FT_HORIZONTAL, FS_HORIZONTAL_PLUS, FS_VERTICAL_MINUS, RT_AZIMUTHAL, \
        FullRotationCalculator, ScreenRatioCalculator, DetailsCalculator
    from ephyra.formula import horizontal_4_to_3_fov_coefficient, horizontal_fov_to_80_coefficient

    dh1 = DataHelper(screen_aspect_ratio=Fraction(16, 10), fov=radians(90), fov_aspect_ratio=Fraction(4, 3),
                     fov_type=FT_HORIZONTAL, fov_scaling=FS_HORIZONTAL_PLUS, rt=RT_AZIMUTHAL,
                     ltr_coefficient_transformation_formula=horizontal_4_to_3_fov_coefficient,
                     radians_per_count=radians(0.022), counts_per_unit=800, screen_diagonal=24)

    dh2 = DataHelper(screen_aspect_ratio=Fraction(16, 10), fov=radians(100), fov_aspect_ratio=Fraction(16, 10),
                     fov_type=FT_HORIZONTAL, fov_scaling=FS_VERTICAL_MINUS, rt=RT_AZIMUTHAL,
                     ltr_coefficient_transformation_formula=horizontal_fov_to_80_coefficient,
                     radians_per_count=radians(2.2278481012658227), counts_per_unit=800, screen_diagonal=24)

    frc = FullRotationCalculator(dh1.primary_state, dh1.parameters, dh2.parameters)

    fr_c, fr_sens = frc.sensitivity_for(s1_sens=2, s2=dh2.primary_state)

    print(f'Full rotation & different applications, coefficient: {fr_c:.4f}, sensitivity: {fr_sens:.4f}')

    src = ScreenRatioCalculator(ratio1=.10, s1=dh2.primary_state, p1=dh2.parameters)

    dh2_s2 = dh2.get_state_for_fov(radians(40))

    src_c, src_sens = src.sensitivity_for(s1_sens=.0158, s2=dh2_s2)

    print(f'Screen ratio & same application, coefficient: {src_c:.4f}, sensitivity: {src_sens:.4f}')

    dc = DetailsCalculator(dh1.primary_state, dh1.parameters)

    print(f'Details, full rotation distance: {dc.full_rotation_units(sens=2):.4f}')

License
-------

Ephyra is released under version 2.0 of the `Apache License`_.

.. _Apache License: http://www.apache.org/licenses/LICENSE-2.0