semvec/pypi-packages huggingface dataset:
fps-inspector-sdk 1.0.8
Library to measure FPS and FlipRate
Requires Python: >=3

# FPS Inspector SDK

## Build status

*Windows(AppVeyour)*:

[![Build status](https://ci.appveyor.com/api/projects/status/sj0j2oqeij6pnmtr/branch/master?svg=true)](https://ci.appveyor.com/project/Andrey1994/fps-inspector-sdk/branch/master)

It's a library which allows you to measure FPS FlipRate and other metrics.

It's based on Event Tracing and doesn't hook inside game process unlike Fraps

For now I've added only python binding if you wanna use another languages like C#, Java, R etc - let me know and I will add them

Also, you are able to use compiled dll and header from native code or add bindings by yourself
* [header](https://github.com/Andrey1994/fps_inspector_sdk/blob/master/src/PresentMon/PresentMon.hpp)
* [dll](https://github.com/Andrey1994/fps_inspector_sdk/blob/master/python/fps_inspector_sdk/lib/PresentMon.dll)

## Installation

First option is:
```
git clone https://github.com/Andrey1994/fps_inspector_sdk
cd python
pip install .
```

Also you can install it from PYPI:
```
pip install fps_inspector_sdk
```

*you have to run it with administrator priviligies and using 64-bit Python*

Simple Sample:
```
import sys
import time
import matplotlib
matplotlib.use ('Agg')
import numpy
import matplotlib.pyplot as plt

from fps_inspector_sdk import fps_inspector

def main ():
    float_formatter = lambda x: "%.5f" % x
    numpy.set_printoptions (formatter={'float_kind': float_formatter}, threshold=numpy.inf)

    pid = int (sys.argv[1])
    fps_inspector.start_fliprate_recording (pid)
    time.sleep (10)
    fps_inspector.stop_fliprate_recording ()
    data = fps_inspector.get_all_fliprates () # get all data from begining,
    # also you can obtain the latest data using fps_inspector.get_last_fliprates(num_samples) method
    # data is a pandas dataframe, it simplify data analysis!
    print (data)

    plt.figure ()
    data[data.ScreenTime != 0][['FPS', 'FlipRate', 'ScreenTime']].plot (x='ScreenTime', subplots=True)
    plt.savefig ('plot.png')
    data.to_csv('scores.csv')
    plt.close ()


if __name__ == "__main__":
    main ()
```
siderunner 0.2.5
Runs Selenium IDE tests without Selenium IDE.


SIDErunner
====
A framework for running Selenium IDE tests from within Python without having to export those
tests.   It reads the tests in their native XML format and makes corresponding webdriver calls
based on the contents of the XML files.

It can run both tests and test suites.

Installation
----

    pip install siderunner

To use in headless mode you'll need selenium, pyvirtualdisplay and a browser such as FireFox.

    $ apt-get install xvfb xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic
    $ apt-get install pyvirtualdisplay
    $ apt-get install selenium
    $ apt-get install firefox


Example
----
This example runs a simple test suite created with Selenium IDE and saved as .xml files.


    #!/usr/bin/python

    import os
    import siderunner

    here = os.path.join(os.path.dirname(__file__), 'tests')

    class SystemTests(siderunner.SeleniumTests):

        headless = True
        url = 'http://localhost'
        path = os.path.join(here, 'scripts')
        size = (1024, 2048)

        def test_suite_one(self):
            self.run_suite('suite-one')

        def test_suite_two(self):
            self.run_suite('suite-two')
pyphotonfile 0.1.1
Library for reading and writing files for the Anycubic Photon 3D-Printer

pyPhotonfile is a library used for manipulating Photon-files created for the Anycubic Photon 3D-Printer. Currently it supports removing and adding new layers as well as changing global parameters like the exposure time, etc.
It is based on the work done by [PhotonFileEditor](https://github.com/Photonsters/PhotonFileEditor). While PhotonFileEditor works, I was in need of a clean library which is why I refactored most of the code.
pyPhotonfile is the backbone of [SL1toPhoton](https://github.com/fookatchu/SL1toPhoton).

Friendly Reminder
=================
   Use at your own risk. Please verify that what you are doing will not break your printer.

Example Usage
========================================
```python
    from pyphotonfile import Photon

    photon = Photon('in_file.Photon')
    for layer in photon.layers:
        print(layer)
    photon.export_images('tempdir')
    photon.delete_layers()
    for filepath in os.listdir('tempdir'):
        photon.append_layer(filepath)
    photon.exposure_time = 10
    photon.bottom_layers = 3
    photon.write('out_file.Photon')
```