Saravanan666/pypi-org huggingface dataset:
Package: utils-pygame
Pygame UtilsA compilation of utility tools (mainly widgets: buttons, checkboxes...) to use withpygame.InstallationUse the package managerpipto install Pygame Utils.pipinstallutils-pygameUsageSo far there are 2 widgets:buttonandcheckboxEvery widget has adrawfunction, that draws the widget. To use it simply callyourWidget.draw(win), whereyourWidgetcorresponds to your widget name andwincorresponds to your pygame display.In almost every widget you don't need to specify every single attribute, default values are used instead.You can run theexample.pyfile to get a general idea of what the widgets look like as well as using it as a reference or template.Some common concepts across widgets:color: RGB tuple (ex:(125, 100, 200))x: x coordinatey: y coordinatewidth: width of the widgetheight: height of the widgettext: text associated with the widgetsize: size of the textfont: name of the font to use (make sure it is installed in your system)outline: the outline of the widgetButtonCreating a button:importPygameUtilsaspubut=pu.button(color,x,y,width,height)Optional arguments:textsizefontoutlineInteracting with a button:Using theisOver(pos)function, you can check if a given position ((x, y)tuple, most likely the position of the mouse) is over the button, associating all kinds of pygame events to it (pygame.MOUSEBUTTONDOWN,pygame.MOUSEMOTION).CheckboxCreating a checkbox:importPygameUtilsaspucheckb=pu.checkbox(color,x,y,width,height)Optional arguments:outlinecheck: if the box starts checked or not (boolean)textsizefonttextGap: the amount of space between the text and the boxInteracting with a checkbox:Like the button, you can use theisOver(pos)function to check if a given position is over the box.Theconvert()function changes the state of the box, from checked to unchecked or vice versa. Most likely you will want to use this function alongside theisOver(pos)function and thepygame.MOUSEBUTTONDOWNevent.TheisChecked()function returns the current state of the box (Trueif checked,Falseotherwise)LicenseMIT
Package: utils-tesis
utils-tesisutils-tesisis a Python package that provides a collection of auxiliary functions for various tasks commonly encountered in thesis and research projects. These functions are designed to streamline and simplify common operations, leveraging the power of the NumPy Stack, including NumPy, SciPy, Matplotlib, and Pandas.FeaturesNumPy Stack Integration: Utilize the capabilities of NumPy, SciPy, Matplotlib, and Pandas seamlessly for efficient data manipulation, analysis, and visualization.Convenience Functions: A set of convenience functions to perform common tasks encountered in thesis and research projects, including:Loading Signals as Pandas DataFrames: Easily load and handle signals as Pandas DataFrames for efficient data manipulation.Fault Detection using Harmonic Distortion: Detect and analyze faults in signals by examining harmonic distortion.Signal Windowing: Apply windowing techniques to signals for better analysis and feature extraction.Plotting: Streamlined functions for visualizing signals and analysis results using Matplotlib.Fourier Transforms: Perform Fourier transforms on signals to analyze frequency components.Superimposed Components Analysis: Identify and analyze superimposed components in signals.Modular Design: Well-organized modules make it easy to find and use specific functionalities without unnecessary complexity.InstallationInstall the package using pip:pipinstallutils-tesisUsage Example# test.py# Import necessary modules from utils_tesisimportutils_tesis.integrationasitgfromutils_tesis.signalloadimportCSV_pandas# Create a dictionary to store signal informationsignal_info={}signal_info["window_length"]=64signal_info["step"]=4# Instantiate a CSV_pandas object to load signalssignals=CSV_pandas()# Retrieve the list of available signalssignals.relay_list()# Assign signals to the signal_info dictionarysignal_info["signals"]=signals# Specify the signal name for analysissignal_info["signal_name"]="I: X0023A-R1A"# Perform integration using img_trip function from the itg modulet,trip=itg.img_trip(signal_info)# Visualize the results using Matplotlibimportmatplotlib.pyplotasplt# Plot the integrated signal using stem plotplt.stem(t,trip)plt.title("Integrated Signal: "+signal_info["signal_name"])plt.xlabel("Time")plt.ylabel("Integrated Value")plt.show()
Package: utils-uiauto
安装证书在driver/dll下有不同的dll文件
HID:键鼠一体
General：通用,需要根据win7，win10系统选择 在管理员权限下运行setup.cmd
Simple:简单examplefrom utils_uiauto.driver import DD_Driver_Mouse_Keybord 

dd = DD_Driver_Mouse_Keybord()
dd.keybord_input_str("123456")
Package: utilsuneed
Help on module Utilities:NAME
UtilitiesFILE
f:obodobo\projects\utilities_pack\utilsuneed\utilities.pyCLASSES
COMMS
LOGGER
SER_2_SOCK
Vector3class COMMS
 |  Methods defined here:
 |  
 |  CLIENT_CONNECT(self, host, port)
 |  
 |  CLIENT_RECV(self, buffer=3)
 |  
 |  CLIENT_SEND(self, command)
 |  
 |  CLIENT_order_synchronous(self, command)
 |  
 |  SERV_HOST(self, host, port)
 |  
 |  SERV_NEW_CLI(self)
 |  
 |  SERV_RECV(self, buffer=3)
 |  
 |  SERV_SEND(self, data)
 |  
 |  SERV_order_syncronous(self, command)
 |  
 |  recv_buff(sock, count)
 |  
 |  ----------------------------------------------------------------------
 |  Data and other attributes defined here:
 |  
 |  CLIENT = False
 |  
 |  SERVER = False
 |  
 |  client_connection = None
 |  
 |  sock = <socket._socketobject object>

class LOGGER
 |  Methods defined here:
 |  
 |  __init__(self, filename='LOGS/LOG_<timestamp>.csv')
 |  
 |  log_all(self, parameter_list, attempts=20)
 |      attempts = 0  // For infinite attempts , default attempts = 20

class SER_2_SOCK
 |  Methods defined here:
 |  
 |  CONNECT(self)
 |  
 |  SETUP(self)
 |  
 |  START_SERVICE(self)
 |  
 |  ser2sock(self, serial_h, socket_h)
 |  
 |  sock2ser(self, serial_h, socket_h)
 |  
 |  ----------------------------------------------------------------------
 |  Data and other attributes defined here:
 |  
 |  COMbaud = 115200
 |  
 |  COMport = 'COM9'
 |  
 |  buffSize = 4096
 |  
 |  host = 'localhost'
 |  
 |  port = 8001
 |  
 |  ser_err = 0
 |  
 |  serial_connect_timeouts = 1
 |  
 |  serverSocket = <socket._socketobject object>
 |  
 |  sock_err = 0
 |  
 |  socket_connect_timeouts = 1

class Vector3
 |  Methods defined here:
 |  
 |  Dot(self, v)
 |  
 |  __add__(self, v)
 |  
 |  __call__(self, x=0, y=0, z=0, multiprocessing=False)
 |  
 |  __init__(self, x=0, y=0, z=0, multiprocessing=False)
 |  
 |  __mul__(self, n)
 |      n = SCALAR ONLY
 |  
 |  __sub__(self, v)
 |  
 |  copy(self, vec)
 |  
 |  copy_mp(self, obj)
 |  
 |  from_list(self, list)
 |  
 |  list(self)
 |  
 |  vector(self)
 |      return Numpy instance of the vector3 format
 |  
 |  ----------------------------------------------------------------------
 |  Data descriptors defined here:
 |  
 |  x
 |  
 |  y
 |  
 |  z
 |  
 |  ----------------------------------------------------------------------
 |  Data and other attributes defined here:
 |  
 |  multiprocessing = False
 |  
 |  x_MP = None
 |  
 |  y_MP = None
 |  
 |  z_MP = NoneFUNCTIONS
decode_to_json(command)encode_to_json(command)

printE(name='', message='')
Package: utilThreading
# util-threading[![Build Status](https://travis-ci.org/seanwiseman/util-threading.svg?branch=master)](https://travis-ci.org/seanwiseman/util-threading) [![Coverage Status](https://coveralls.io/repos/github/seanwiseman/util-threading/badge.svg?branch=master)](https://coveralls.io/github/seanwiseman/util-threading?branch=master)Util Threading is a collection of useful classes which all execute common tasks that require execution on an additionalthreads.Features:- ManagerThread: A utility Thread wrapper which starts a thread that manages a queue and passes queue entries to beprocessed a by user defined function.- SocketClientThread: A utility Thread wrapper which starts 3 threads that manage the listening, data receiving ofsocket connections and passes the received data to the user defined function via a queue.## Installation## Usage## Example
Package: utinni
UtinniAn async Python client library for Empire's RESTful API(Only works with theBC-Security Empire fork)SponsorsTable of ContentsUtinniInstallingExamplesFAQInstallingpip3 install utinniExamplesSee theexamplesfolder for more.Simple example showing basic usage:importasynciofromutinniimportEmpireApiClientasyncdefmain():# Create client instanceempire=EmpireApiClient(host="localhost",port="1337")# Login to Empire's RESTful APIawaitempire.login("username","password")print("* Logged into Empire")# Create a listenerawaitempire.listeners.create(listener_type="http",name="Utinni",additional={"Port":8443})print("* Waiting for agents...")whileTrue:# Poll for new agents every 1 secforagentinawaitempire.agents.get():#Print some basic info on the new agentprint(f"+ New agent '{agent.name}' connected:{agent.domain}\\{agent.username}")# Execute a module on the agentmodule_output=awaitagent.execute("powershell/lateral_movement/invoke_wmi",options={"ComputerName":"targethost","Listener":"Utinni",},)print(f"++ Executed invoke_wmi module on agent '{agent.name}'")print(f"++ Module output:{module_output}")awaitasyncio.sleep(1)# Start the event loopasyncio.run(main())Example with background tasks:importasynciofromutinniimportEmpireApiClientasyncdefagent_poller(empire):# Poll for new agents every 1 secprint("* Waiting for agents...")whileTrue:foragentinawaitempire.agents.get():#Print some basic info on the new agentprint(f"+ New agent '{agent.name}' connected:{agent.domain}\\{agent.username}")# Do whatever you want with the agent object here and it won't block the main thread# In this example executing we're executing a shell commandcmd_output=awaitagent.shell("dir")print("++ Executed shell command")print(f"++ Output:{cmd_output}")awaitasyncio.sleep(1)asyncdefmain():# Create client instanceempire=EmpireApiClient(host="localhost",port="1337")# Login to Empire's RESTful APIawaitempire.login("username","password")print("* Logged into Empire")# Create a listenerawaitempire.listeners.create(listener_type="http",name="Utinni",additional={"Port":8443})# Start the 'agent_poller' coroutine as a background taskagent_poller_task=asyncio.create_task(agent_poller(empire))# Do more stuff here as this thread isn't blocked.available_empire_modules=awaitempire.modules.get()# Wait for the agent_poller_task to complete# in this example it won't ever finish since it's in a infinite loop.awaitagent_poller_task# Start the event loopasyncio.run(main())FAQ1. Why?This was originally made for theDeathStarproject, the author then realized it would be useful as a stand-alone library.2. Why doesn't this library provide a sync API?Cause it doesn't make sense. In 99% of all use cases you're going to want to call/execute/query/do multiple things at the same time. This is legitimately the perfect use case of AsyncIO.3. Will this work with the original Empire repository and not the BC-Security Fork?Probably not. You're welcome to try though.
Package: utinni-fork
This is a fork. The original repository can be foundhereUtinniAn async Python client library for Empire's RESTful API(Only works with theBC-Security Empire fork)SponsorsTable of ContentsUtinniInstallingExamplesFAQInstallingVia Pip:pip3 install utinniDocker image:docker pull byt3bl33d3r/utinniExamplesSee theexamplesfolder for more.Simple example showing basic usage:importasynciofromutinniimportEmpireApiClientasyncdefmain():# Create client instanceempire=EmpireApiClient(host="localhost",port="1337")# Login to Empire's RESTful APIawaitempire.login("username","password")print("* Logged into Empire")# Create a listenerawaitempire.listeners.create(listener_type="http",name="Utinni",additional={"Port":8443})print("* Waiting for agents...")whileTrue:# Poll for new agents every 1 secforagentinawaitempire.agents.get():#Print some basic info on the new agentprint(f"+ New agent '{agent.name}' connected:{agent.domain}\\{agent.username}")# Execute a module on the agentmodule_output=awaitagent.execute("powershell/lateral_movement/invoke_wmi",options={"ComputerName":"targethost","Listener":"Utinni",},)print(f"++ Executed invoke_wmi module on agent '{agent.name}'")print(f"++ Module output:{module_output}")awaitasyncio.sleep(1)# Start the event loopasyncio.run(main())Example with background tasks:importasynciofromutinniimportEmpireApiClientasyncdefagent_poller(empire):# Poll for new agents every 1 secprint("* Waiting for agents...")whileTrue:foragentinawaitempire.agents.get():#Print some basic info on the new agentprint(f"+ New agent '{agent.name}' connected:{agent.domain}\\{agent.username}")# Do whatever you want with the agent object here and it won't block the main thread# In this example executing we're executing a shell commandcmd_output=awaitagent.shell("dir")print("++ Executed shell command")print(f"++ Output:{cmd_output}")awaitasyncio.sleep(1)asyncdefmain():# Create client instanceempire=EmpireApiClient(host="localhost",port="1337")# Login to Empire's RESTful APIawaitempire.login("username","password")print("* Logged into Empire")# Create a listenerawaitempire.listeners.create(listener_type="http",name="Utinni",additional={"Port":8443})# Start the 'agent_poller' coroutine as a background taskagent_poller_task=asyncio.create_task(agent_poller(empire))# Do more stuff here as this thread isn't blocked.available_empire_modules=awaitempire.modules.get()# Wait for the agent_poller_task to complete# in this example it won't ever finish since it's in a infinite loop.awaitagent_poller_task# Start the event loopasyncio.run(main())FAQ1. Why?This was originally made for theDeathStarproject, the author then realized it would be useful as a stand-alone library.2. Why doesn't this library provide a sync API?Cause it doesn't make sense. In 99% of all use cases you're going to want to call/execute/query/do multiple things at the same time. This is legitimately the perfect use case of AsyncIO.3. Will this work with the original Empire repository and not the BC-Security Fork?Probably not. You're welcome to try though.
Package: utinypass
Unofficial TinyPass LibraryVersion History02-09-2015 - 0.1.0 - First packaging.  Trying to follow the advice fromhttps://hynek.me/articles/sharing-your-labor-of-love-pypi-quick-and-dirty/04-10-2015 - 0.2.1 - Adding an api client with access listing, granting and revoking.04-15-2015 - 0.2.2 - Adding get_user, create_user and update_user to the api client.AuthorsGlenn FranxmanTODOWhat’s the right way to version this?  __version__ in the __init__.py?   From the setup.py file?explicit support for creating the userRef structure.Eventually move the package to plain ole tinypass
Package: utipy
utipyUtility functions for python.Alpha stage. Subject to change.https://pypi.python.org/pypi/utipy/Install from PyPI:pipinstallutipyInstall from GitHub:python-mpipinstallgit+https://github.com/ludvigolsen/utipyUpdate this package but not dependencies:python-mpipinstall--force-reinstall--no-depsgit+https://github.com/ludvigolsen/utipyPandas operationsFunctionDescriptionmakes_up()Is a Series made up of a specific value (more than / less than / equal to a threshold) ?drop()Drop rows / columns of dataframe based on the percentile appearance of a specified valuepolynomializer()Add polynomials to numeric columns, i.e. v1, v1^2, v1^3, ...resemble()Generate a Series resembling another Seriesmove_column_inplace()Move a column to a specified indexData groupingFunctionDescriptiongroup()Create grouping factors with different methodspartition()Create balanced partitions for train/testfold()Create balanced folds for cross-validationArray operationsFunctionDescriptionblend()Blend two arrays of same lengthwindowed_reverse()Reverse array within windowswindow()Split array into rolling windowsnan_stats(),print_nan_stats()Get NaN statisticsTime operationsClassDescriptionStepTimerTime a step of code in awithcontextTimestampsRecord and keep track of timepointsPath operationsClass/FunctionDescriptionIOPathsKeep track of in-/out paths with checks, directory creation, and a print summarymk_dir()Create directory if it doesn't exist, with messaging of the created pathrm_dir()Remove directory if it exists, with messaging of the deleted pathString operationsFunctionDescriptionletter_strings()Generate n letter strings (aa, ab, ac, ...)Other utilitiesClass/FunctionDescriptionMessengerSimplify messaging (print/log) with verbosity and indentation
Package: utknows
utknowsis a unittest patch that can automaticlyskiptest case
based on dependence info calculated bytrace.InstallingYou can installutknowsthroughpiporeasy-install:pip install utknowsOr you can download thelatest development version, which may
contain new features.Using utknowsutknowsshould be used beforeunittest.mainis invoked like this:from utknows import setup_utknows
setup_utknows(db, db_prefix="utknows", root_dir=os.path.abspath(os.curdir))
unittest.main(******, exit=False)
# some resource release, etc db.close()Thedbis a persistence database instance, and implementate__getitem__and__setitem__method.Theroot_diris the tracing base of dependence used by trace.Thedb_prefixis the key prefix indb.When the first time tests runs, it calculate all the dependence info of every testcase:utknows/examples$ python alltests.py
......
----------------------------------------------------------------------
Ran 6 tests in 0.031s
OKAfter that, the case will be skipped when the dependence info is satisfacted:utknows/examples$ python alltests.py
ssssss
----------------------------------------------------------------------
Ran 0 tests in 0.003s

OK (skipped=6)Case will be rerun after you modify any file it depends:utknows/examples$ touch test_hello.py
utknows/examples$ python alltests.py
...sss
----------------------------------------------------------------------
Ran 3 tests in 0.003s

OK (skipped=3)Thesoutput here stand forskip.ExamplesUsingredisas backend:import redis

def open_db():
    return redis.Redis(host='localhost', port=6379, db=0)

def close_db(db):
    db.client_kill('localhost:6379')

from utknows import setup_utknows
db = open_db()
setup_utknows(db, root_dir=os.path.abspath(os.curdir))
unittest.main(defaultTest="suite", buffer=True, exit=False)
close_db(db)Usingdbmas backend:import os
import shelve

def open_db():
    return shelve.open(os.path.join(os.curdir, '.utknows'), writeback=True)

def close_db(db):
    db.sync()
    db.close()

from utknows import setup_utknows
db = open_db()
setup_utknows(db, root_dir=os.path.abspath(os.curdir))
unittest.main(defaultTest="suite", buffer=True, exit=False)
close_db(db)Licenseutknowsis copyright 2013 mapix and Contributors, and is made
available under BSD-style license; see LICENSE for details.
Package: utl
This is a simply one-function utility. The purpose is to print available tests without executing them.
It should be used with standard*python’s unit tests*.utlstands foru-nitt-estl-ister.UsageYou can see it in action onthis asciicast.Note:If you runUTLwith Django project, passenv. var.like this:$ DJANGO_SETTINGS_MODULE=mysite.settings; utl <dir-to-scan-for-tests>see detailsDjango doc.InstallationAs other python packages:pip install utlLinks:source onBitbucketLicenceAttribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)AuthorsMany thanks toVaultahbecause he|she cover the main work onstackoverflowWrapping Vaultah’s work into package was done byxliiv.Future featuresprocess and pass all possibleunittest.discoveryparams‘entry point’ could be in package notation, eg.:foo.bar.bazshow some sort of statistics
Package: utlvce
UT-LVCE: Perturbations and Causality in Gaussian Latent Variable ModelsThis repository contains a Python implementation of the UT-LVCE algorithms from the 2022paper"Perturbations and Causality in Gaussian Latent Variable Models", by A. Taeb, JL. Gamella, C. Heinze-Deml and P. Bühlmann.It is also available as the python packageutlvce. You can find the full documentation athttps://utlvce.readthedocs.io/en/latest/.The code to reproduce the experiments and figures in the paper can be found in a separaterepository.InstallationYou can clone this repo or install the package using pip:pip install utlvceDocumentationYou can find the docs athttps://utlvce.readthedocs.io/en/latest/.VersioningThe pacakge is still at its infancy and its API may change in the future. Non backward-compatible changes to the API are reflected by a change to the minor or major version number, e.g.code written using utlvce==0.1.2 will run with utlvce==0.1.3, but may not run with utlvce==0.2.0.FeedbackFeedback is most welcome! You can add an issue  or send anemail.
Package: utlz
A Python utils libraryInstallationInstall the latest version of the pypi python packageutlz:pipinstallutlzDevelopmentClone the source coderepository:gitclonehttps://github.com/theno/utlz.gitcdutlzFabfileThefabfile.pycontains devel-tasks to be executed withFabric(maybe you need toinstallit):> fab -l

Available commands:

    clean    Delete temporary files not under version control.
    pypi     Build package and upload to pypi.
    pythons  Install latest pythons with pyenv.
    test     Run unit tests.
    tox      Run tox.

# Show task details, e.g. for task `test`:
> fab -d test

Run unit tests.

    Keyword-Args:
        args: Optional arguments passed to pytest
        py: python version to run the tests against

    Example:

        fab test:args=-s,py=py27At first, set up python versions withpyenvand virtualenvs for
development withtox:fab pythons
fab toxTox creates virtualenvs of different Python versions (if they not exist
already) and runs the unit tests against each virtualenv.On Ubuntu 16.04 you must installlibpython-devandlibpython3-devin order to make the tests passing for Python-2.7 and
Python-3.5:sudoapt-getinstalllibpython-devlibpython3-dev# Then, rebuild the non-working Python-2.7 and Python-3.5 virtualenv and
# run the unit tests:fabtox:'-e py27 -e py35 --recreate'Devel-CommandsRun unit tests against several pythons with tox (needs pythons defined
in envlist oftox.inito be installed with pyenv):python3.6-mtox# only against one python version:python3.6-mtox-epy27# rebuild virtual environments:python3.6-mtox-rRun unit tests with pytest (uses tox virtualenv, replacepy36by
e.g.py27where applicable):PYTHONPATH='.'.tox/py36/bin/python-mpytest# show outputPYTHONPATH='.'.tox/py36/bin/python-mpytest-s
Package: utm-epsg-finder
UTM EPSG FinderDescriptionUTM EPSG Finderallow the user to find the UTM'sEPSGcode from his vectors inEPSG:4326andESPG:3857.
Sometimes is useful to know the projected EPSG; as example when you will calculate the polygon's area or the distance between two points. In this case if your vectors are in 4326 or worst in 3857
you can't return a correct value. Remember that with Pseudo-Mercator is not optimal calculate area but if you use an UTM EPSG the output value from area calculation is more correct.UTM EPSG Finderis based on:GeoPandaspyprojshapelyrasterioutmFeatureGet UTM EPSG for linesGet UTM EPSG for pointsGet UTM EPSG for polygonsGet UTM EPSG for rasterMoreGitHub repo:https://github.com/GIS-Consultant/utm-epsg-finder.gitDocumentation:https://utm-epsg-finder.readthedocs.ioFree software: MITCreditsThis package was created withCookiecutterand thefedejaure/cookiecutter-modern-pypackageproject template.Thanks tog2giovannifor the help to setting up the package.