Saravanan666/pypi-org huggingface dataset:
Package: pymocklib
pymocklibThis is a Python 3.10 port ofhttps://git.eisfunke.com/software/mock/, a library for manipulating human-readable message strings.Disclaimer: This library hasnothing to do with mocking in the software development world. Rather, it takes mocking
in a more literal sense ofmocking sth. or someone. I want to excuse any confusion that arises from the somewhat
overloaded term ofmockingIt does stuff like this:In[1]:importmockIn[2]:mock.to_random("pymocklib is a sick library. like sick as in ill")Out[2]:'PYMoCKlib is a SIcK LIBrary. LIkE siCK as in ILL'In[3]:mock.to_alternating("pymocklib is really dope. Like your mom, probably")Out[3]:'pYmOcKlIb is reAlLy doPe. LIKe yoUr moM, prObAbLy'In[4]:mock.to_pseudo_cyrillic("pymocklib is really dope. Like your mom probably")Out[4]:'pџmөcкlɪв ɪs яёдllџ dөpё. Lɪкё џөця mөm pяөвдвlџ'In[5]:print(mock.to_square("wtf?!"))wtf?!tf?!In[6]:print(mock.to_clap("what the actuall fucking shite?"))what👏the👏actuall👏fucking👏shite?
Package: pymocko
pymockoThis is to generate mock dataInstallation:python -m pip install pymockoDevelopment Eviroment:git clone https://github.com/datnguye/pymocko.git
cd pymocko/pymocko

python -m venv env
.\env\Scripts\activate
OR source env/bin/activate (linux)

python -m pip install -r requirements.txtRun test cases:cd ..
python run.pyVersion usedPython 3.7.5USAGEMokcing by json model:print("Mock model")
print(model.mock(schema_json={"id":"num", "name":"word", "qty":"num", "unit_price":"price", "created_at":"date", "updated_at":"date"}, count=5))
print(model.mock(schema_json={"id":"num", "user_name":"word", "name":"word", "dob":"date", "phone_no":"char", "email":"word", "gender":"word", "ip_address":"char"}, count=5))
print(model.mock(schema_json={"id":"num", "name":"word", "qty": { "stocked": "num", "online": "num" }, "price":[ { "unit_price":"price", "effective_date": "date"} ], "created_at":"date", "updated_at":"date"}, count=3))
print(model.mock(schema_json={"id":"num", "name":"word", "tags": ["word"], "reference_names": [ "word" ], "qty": { "stocked": "num", "online": "num" }, "price":[ { "unit_price":"price", "effective_date": "date"} ], "created_at":"date", "updated_at":"date"}, count=3))Randomize number:from pymocko import num
print(num.mock())
print(num.mock(f=1, t=10))
print(num.mock(f=1, t=1000, neg=True))Randomize price:from pymocko import price
print(price.mock())
print(price.mock(f=1000, t=10000))
print(price.mock(f=0, t=2500, decimal=0))
print(price.mock(f=0, t=2500, decimal=4))
print(price.mock(f=0, t=2500, neg=True))Randomize date:from pymocko import date
print(date.mock())
print(date.mock(f=datetime.datetime(2020,6,1)))Randomize character:from pymocko import char
print(char.mock())
print(char.mock(no_of_char=20,number_inc=True))
print(char.mock(no_of_char=30,number_inc=True,special_inc=True))Randomize word/sentence:from pymocko import word
print(word.mock()) 
print(word.mock(no_of_word=20))
print(word.mock(no_of_word=10, upper_first=True))
print(word.mock_phone())
print(word.mock_phone(prefix="+84"))
print(word.mock_email())
print(word.mock_email(domain="data.com"))
print(word.mock_gender())
Package: py-mockserver
py-mockservermockserver client for james bloom's mockserverhttps://github.com/jamesdbloom/mockserverinstallationpip install py-mockserverUsageFor detail instruction how to use mockserver see thisdocumentationCreating Expectationsfrom pymockserver import Client, Request, Response
from pymockserver import RequestTimes

# without times
def create_expectation(self):
    client = Client('localhost', 1080)
	request = Request('/somepath', 'POST')
	response = Response('')
	client.expectation(request, response)

# with times
def create_expectation(self):
    client = Client('localhost', 1080)
	request = Request('/somepath', 'POST')
	response = Response('')
    times = Times()
	client.expectation(request, response, times)RequestTimesis optional to specify if you don't want that fake endpoint to live foreverGetting recorded requestsfrom pymockserver import Client, Request

# get all recorded requests
client = Client('localhost', 1080)

def get_all_recorded():
   requests = client.retrieve_requests()
   # do something with array requests

def get_recorded_request_match():
    request = Request('/hello', 'POST')
    requests = client.retrieve_requests(request)Examplesall other examples can be seen inintegration_test.py
Package: pymocky
Mock server to return static response.Installpip install pymockyCheck with command:pymocky -hHow to usepymocky -p extras/sample/Test with command (need curl):curl http://localhost:9000/loginTo change from default scenario to other use (server need be running):pymocky --update-scenario "login-error"Test again with command (need curl):curl http://localhost:9000/loginExample of YAML filemappings:
- id: hello_world
   scenario: login-success
   request:
      url: .*pymocky_hello_world.*
      method: post
      query_string: .*param1=value&param2=value2
      form_fields:
      username: .*demo
      password: .*12345
      headers:
         "Content-Type": "application/json"
      body: .*Hello World.*
   response:
      headers:
         "Content-Type": "application/json"
      body_raw: Hello world from pymocky!
      body_file: files/dummy.xml
      body_json:
         success: false
         data:
         errors: []
      body_image: images/image1.png
      body_python: files/dummy.py
      sys_path: ["auto"]You can use “body_raw”, “body_file”, “body_json”, “body_image” or “body_python” as response type.When you use “body_python” you can add array “sys_path” and pymocky will add these paths to “sys.path” list. The list of “sys.path” is reloaded to original (when pymocky start is stored a copy of this list) everytime that YAML files are parsed again. When you use “auto” in the array, the path will be the directory of python file to be execute.body_raw: Raw text as response
body_file: File content with mimetype discovery by extension
body_json: Json as YAML object or string
body_image: Image file with mimetype discovery by extension
body_python: Python file to be executedChange scenarioTo change from default scenario to other use (server need be running):pymocky --update-scenario "login-error"TestingYou need install test dependencies with the command:pip install -r requirements_tests.txtTo execute all tests use the command:python -m pytest testsTo coverage test use the command:python -m pytest --cov=. --cov-report=xml --cov-report=html testsTo install locally during development:python setup.py installor:pip install -e .PackagingTo package and upload for distribution on PyPi server use:python setup.py uploadContributingFork the project and clone locally.Create a new branch for what you’re going to work on.Push to your origin repository.Create a new pull request in GitHub.Buy me a coffeeSupported By Jetbrains IntelliJ IDEALicenseMITCopyright (c) 2020-present, Paulo Coutinho
Package: pymod112
pymod112一个基于Python开发的公民身份号码检验与地区代码查找程序by HoshsL安装PyPI使用pip安装，仅支持Python 3.10及以上版本pipinstallpymod112使用校验身份证号码(隐藏详情)>>>importpymod112>>>pymod112.mod112('11010519491231002X')True校验身份证号码(显示详情)>>>importpymod112>>>pymod112.mod112('11010519491231002X',details=True){'id':'11010519491231002X','province':['11','北京市'],'city':['01',''],'county':['05','朝阳区'],'birth_date':['1949','12','31'],'gender':'女','result':True,'problem':'000'}查询地区代码对应的地区名>>>importpymod112>>>pymod112.code2location('110105')['北京市','','朝阳区']查询地区名对应的地区代码>>>importpymod112>>>pymod112.location2code(['北京市','朝阳区'])'110105'返回全部错误代码及其对应内容>>>importpymod112>>>pymod112.CODE2ERROR{'000':'不存在问题','002':'参数location长度错误','003':'参数code长度错误','004':'参数id长度错误','005':'参数id内容包含非法字符','006':'参数id不合法','007':'参数id中包含不存在的地区','008':'参数id中包含不存在的时间'}许可证MIT License更新日志0.1.2(2023-8-5)错误修复修复了参数id来自同年的未来时间也可能通过时间校验的问题修复了参数id最后一位不合法但不会返回错误代码005的问题新增新增函数location2code以方便查询行政区划代码改进修改了一个函数名(code_to_location -> code2location)修改了一个常量名(code_to_error -> CODE2ERROR)函数code2location参数code要求类型由list变为code更新了CODE2ERROR函数mod112返回中'gender'的值变为'男'或'女'其它开源许可证更改为MIT License0.1.1(2023-7-2)加入参数类型检查优化错误代码（停用001 002 003）删除函数problem()0.1.0(2023-6-24)这是第一个正式发行版
Package: pymod2pkg
pymod2pkgpymod2pkgis a simple python module for translating python module names to
corresponding package names which is a common problem in the packaging world.
It is used for the OpenStack rpm packaging initiative.
For more information about the OpenStack rpm packaging initiative, please
follow the link to the wiki page:https://wiki.openstack.org/wiki/Rpm-packagingIn the unfortunate event that bugs are discovered, they should
be reported to the appropriate bug tracker. If you obtained
the software from a 3rd party operating system vendor, it is
often wise to use their own bug tracker for reporting problems.
In all other cases use the master OpenStack bug tracker,
available at:https://bugs.launchpad.net/pymod2pkgDevelopers wishing to work on pymod2pkg should always base
their work on the latest code, available from the master GIT
repository at:https://opendev.org/openstack/pymod2pkgDevelopers should also join the discussion on the mailing list,
at:http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-discussor join the IRC channel onhttp://webchat.oftc.net/?channels=openstack-rpm-packaging
Package: pymodal
IntroductionThis library is a work in progress dedicated to storing FRFs with similar
sampling frequency and time window. For now it’s only built for storing
processed FRFs into numpy arrays with a few extra information alongside them.
It also includes tools for building certain geometries in ANSYS and get their
FRFs. This is still a very early alpha, but the main objective of this project
is to comfortably have FRFs for training deep learning models with ease. If
you plan on using the ANSYS module, be sure to have a working ANSYS
installation.InstallationIn order to install this module, just runpipinstallpymodalin your terminal. This will also potentially install all the requirements, which
you can find inrequirements.txt, although they will be included here as
well for clarity’s sake:numpyscipymatplotlibpandaspyansysDev InstallationIf you wish to try and add some features yourself or modify some of the existing
ones, clone the repository and, in the same folder where the repo is cloned,
run the following command:pipinstall-e.[dev]This will also potentially install all the development requirements, which
you can find inrequirements-dev.txt, although they will be included here as
well for clarity’s sake:pytestdocutilsdoc8flake8
Package: pymodaq
PythonQt BackendOSPassed3.8Qt5Linux3.9Qt5Linux3.10Qt5Linux3.11Qt5Linux3.8Qt5Windows3.8PySide2Linux3.9Qt6LinuxPyMoDAQ, Modular Data Acquisition with Python, is a set ofpythonmodules used to interface any kind of experiments.
It simplifies the interaction with detector and actuator hardware to go straight to the data acquisition of interest.It has two purposes:First, to provide a complete interface to perform automated measurements or logging data without having to write a user/interface for each
new experiment, this is under theDashboard_moduleenvironment and its extensions.Second, to provide various tools (modules) to easily buildcustom appsIt is organised a shown below:PyMoDAQ’s Dashboard and its extensions: DAQ_Scan for automated acquisitions, DAQ_Logger for data logging and many other.The main component is theDashboard: This is a graphical component that will initialize actuators and detectors given
the need of your particular experiment. You configure the dashboard using an interface for quick launch of various
configurations (numbers and types of control modules).The detectors and the actuators are represented and manipulated using two control modules:DAQ_Move_module: used to control/drive an actuator (stand alone and/or automated).
Any number of these modules can be instantiated in the DashboardDAQ_Viewer_module: used to control/drive a detector (stand alone and/or automated).Any number of these modules can be instantiated in the Dashboard.The Dashboard allows you to start dedicated extensions that will make use of the control modules:DAQ_Logger_module: This module lets you log data from one or many detectors defined in the dashboard. You can log data
in a binary hierarchical hdf5 file or towards a sql databaseDAQ_Scan_module: This module lets you configure automated data acquisition from one or many detectors defined
in the dashboard as a function or one or more actuators defined also in the dashboard.and many others to simplify any application development.Published under the MIT FREE SOFTWARE LICENSEGitHub repo:https://github.com/PyMoDAQDocumentation:http://pymodaq.cnrs.fr/
Package: pymodaq-pid-models
# PyMoDAQ PID modelsPyMoDAQ, Modular Data Acquisition with Python, is a set ofpythonmodules used to perform automated measurements.This repository contains various models to interpret measurements from Viewer modules to feed a PID loop and translate
as well outputs to send to actuators in order to stabilize the closed loop systemGitHub repo:https://github.com/CEMES-CNRSDocumentation:http://pymodaq.cnrs.fr/
Package: pymodaq-plugin-manager
# PyMoDAQ Plugin Manager[<img src=”https://img.shields.io/pypi/v/pymodaq_plugin_manager.svg”>](https://pypi.org/project/pymodaq_plugin_manager/)
[<img src=”https://readthedocs.org/projects/pymodaq/badge/?version=latest”>](https://pymodaq.readthedocs.io/en/stable/?badge=latest)
[<img src=”https://github.com/PyMoDAQ/pymodaq_plugin_manager/workflows/Upload%20Python%20Package/badge.svg”>](https://github.com/PyMoDAQ/pymodaq_plugin_manager)A plugin manager for PyMoDAQ, Modular Data Acquisition with Python.Give a list of available, installable or updatable plugins compatible with pymodaq
Package: pymodaq-plugins
Plugins initially developed with PyMoDAQ. Includes Mock plugins that are plugins of virtual instruments dedicated
to code testing for new functionalities or development.AuthorsSebastien J. WeberInstrumentsBelow is the list of instruments included in this pluginActuatorsMockactuator to test PyMoDAQ functionnalitiesMockTaumock actuator with caracteristic time to reach set valueTCP serverto communicate with other DAQ_Move or third party applicationsViewer0DMock 0Ddetector to test PyMoDAQ functionnalitiesMock Adaptivedetector to test PyMoDAQ adaptive scan modeTCP serverto communicate with other DAQ_Viewer or third party applicationsViewer1DMock 1Ddetector to test PyMoDAQ functionnalitiesMock Spectrodetector to test pymodaq_spectro functionalitiesTCP serverto communicate with other DAQ_Viewer or third party applicationsViewer2DMock 2Ddetector to test PyMoDAQ functionnalitiesTCP serverto communicate with other DAQ_Viewer or third party applicationsViewerNDMock NDdetector to test PyMoDAQ functionnalities
Package: pymodaq-plugins-andor
Set of PyMoDAQ plugins for Andor Camera (CCD camera using SDK2, SCMOS cameras using SDK3…)AuthorsSébastien. J. WeberInstrumentsBelow is the list of instruments included in this pluginActuatorsShamrock: Shamrock series of spectrometer used as a monochromatorViewer1DShamrockCCD: Shamrock series of spectrometer using the Andor CCD cameras (built using double inheritance)ShamrockSCMOS: Shamrock series of spectrometer using the Andor SCMOS cameras (Not tested) (built using double inheritance)ShamrockCCDComposition: Shamrock series of spectrometer using the Andor CCD cameras (built using CCD camera inheritance and Shamrock composition)ShamrockSCMOSComposition: Shamrock series of spectrometer using the Andor SCMOS cameras (Not tested) (built using SCMOS camera inheritance and Shamrock composition)Viewer2DAndorCCD: Andor CCD camera using the SDK2AndorSCMOS: Andor CCD camera using the SDK3
Package: pymodaq-plugins-basler
Set of PyMoDAQ plugins for cameras by Basler.AuthorsBenedikt BurgerInstrumentsBelow is the list of instruments included in this pluginActuatorsViewer0DViewer1DViewer2DBasler: control of Basler camerasPID ModelsExtensionsInstallation instructionsYou need the manufacturer’s driverPylonfor the cameras.This package uses the work of agenergic pylablib camera driver, which is not yet available.
Relevant code is included in this package, so no additional installation needed.
Package: pymodaq-plugins-crystal-technology
Set of PyMoDAQ plugins for instruments from Crystal Technology. Also compatible with AOTF sold by YSL companyAuthorsSébastien J. Weber  (sebastien.weber@cnrs.fr)InstrumentsBelow is the list of instruments included in this pluginActuatorsAOTFPro: control of the AOTF from YSl and Crystal TechnologyViewer0DViewer1DViewer2D
Package: pymodaq-plugins-daqmx
Plugin devoted to the National Instrument signal acquisition and generation using the NiDAQmx library. Includes an
actuator plugin for signal generation, a 1D viewer plugin for data acquisition as a function of time and a 0D viewer
plugin for quick time averaging acquisitionAuthorsSébastien J. WeberContributorsAmelie JarnacAurore FincoInstrumentsBelow is the list of instruments included in this pluginActuatorsDAQmx_MultipleScannerControl: Control of piezo scanners with an analog output.Viewer0DDAQmx_PLcounter: Single photon counting
Package: pymodaq-plugins-flim
Set of PyMoDAQ plugins for Fluorescence Lifetime Imaging Microscopy. Current instruments are using Picoquant time to
digital counting card and piezoconcept XY piezo stageAuthorsSebastien J. WeberInstrumentsBelow is the list of instruments included in this pluginViewerNDFLIM: FLIM using piezoconcept XY stage and picoquant timeharp TH260”
Package: pymodaq-plugins-greateyes
PyMoDAQ plugin for instruments from Greateyes (ALEX, ELSE, GE XXXX)AuthorsRomain GeneauxInstrumentsBelow is the list of instruments included in this pluginViewer2DGreateyesCCD: Greateyes CCD cameras using the SDKInstallation notesThis plugin uses the Greateyes C++ SDK (greateyes.dll) and the python wrapper developed by Greateyes. If you do not have either of them, contact Greateyes.
Before using, you need to copy greateyesSDK.py, greateyes.dll and geCommLib.dll to the hardware folder of this plugin.Before using the plugin, it is recommended to test your connection to the camera with the greateyes Vision software.Notes: Options to choose “SensorOutputMode” in cameras with several output nodes (2048 px x 2048 px, or 4096px x 4096 px) is not implemented yet.
Tested on Windows10 with pymodaq 3.1.0, using USB connection.
Package: pymodaq-plugins-hamamatsu
PyMoDAQ plugin for capturing images with Hamamatsu cameras.
The plugin is based onpylablib. Here are the installation instructions as explained onthe library page:These cameras requiredcamapi.dll, which is installed with most of Hamamatsu software (such as HoKaWo or HiPic), as well as with the freely availableDCAM API, which also includes all the necessary drivers. Keep in mind, that you also need to install the drivers for required corresponding camera type (USB, Ethernet, IEEE 1394). These drivers are in the same installer, but need to be installed separately. You should also pay attention to the cameras supported by the given DCAM driver version, since newer version do not support older cameras (e.g., ImageEM C9100 cameras are only supported up to version 15). After installation, the DLL is automatically added to theSystem32folder, where pylablib looks for it by default.Currently this plugin will look for the DLL in its default location. Using another location is not implemented yet, but would be straightforward.Tested with a C11440-36U on PyMoDAQ 3.6.13 on Windows, with DCAM-API v23.6.6644. Achieving frame rates up to 64 FPS in full frame, 200 FPS by restricting the region of interest.
The plugin should work on other cameras, seeDCAM-APIfor compatibility information.AuthorsRomain Géneaux (romain.geneaux@cea.fr)InstrumentsBelow is the list of instruments included in this pluginViewer2DHamamatsuAll cameras using the DCAM-API. Hardware ROI (region of interest) and binning (1x or 2x) are supported. To use ROIs, click on “Show/Hide ROI selection area” in the viewer panel (icon with dashed rectangle). Position the rectangle as you wish, either with mouse or by entering coordinates, then click “Update ROI” button.
Package: pymodaq-plugins-holoeye
Set of PyMoDAQ plugins for Spatial Light Modulators (SLM) from HoloeyeAuthorsSebastien J. Weber  (sebastien.weber@cemes.fr)InstrumentsBelow is the list of instruments included in this pluginActuatorsHoloeyeFile: Used to load phase data into the SLM from a fileHoloeyeFullScreen: Used to load a constant (and controllable) phase into the SLMHoloeyeSplitScreen: Used to load a binary phase mask into the SLM and control both the
split ratio (percentage of vertical/horizontal screen size) and the phase level in each.InfosThe SDK from Holoeye is required to operate those plugins. All plugins can also receive a numpy
array directly to be loaded into the SLM.
Package: pymodaq-plugins-keithley
‘Set of PyMoDAQ plugins for various physical measurements from keithley’AuthorsSebastien J. WeberContributorsNicolas BruyantInstrumentsBelow is the list of instruments included in this pluginActuatorKeithley2400: Sourcemeter Keithley  2400 (using pymeasure intermediate package)Viewer0DKeithley_Pico: Pico-Amperemeter Keithley 648X Series, 6430 and 6514Keithley2110: Multimeter Keithley  2110
Package: pymodaq-plugins-mock
Plugins initially developed with PyMoDAQ. Includes Mock plugins that are plugins of virtual instruments dedicated
to code testing for new functionalities or development. From version 4.0.0 onwards, these plugins will only work with
pymodaq > 4.0.0AuthorsSebastien J. WeberInstrumentsBelow is the list of instruments included in this pluginActuatorsMockactuator to test PyMoDAQ functionnalitiesMockTaumock actuator with caracteristic time to reach set valueTCP serverto communicate with other DAQ_Move or third party applicationsViewer0DMock 0Ddetector to test PyMoDAQ functionnalitiesMock Adaptivedetector to test PyMoDAQ adaptive scan modeTCP serverto communicate with other DAQ_Viewer or third party applicationsViewer1DMock 1Ddetector to test PyMoDAQ functionnalitiesMock Spectrodetector to test pymodaq_spectro functionalitiesTCP serverto communicate with other DAQ_Viewer or third party applicationsViewer2DMock 2Ddetector to test PyMoDAQ functionnalitiesTCP serverto communicate with other DAQ_Viewer or third party applicationsViewerNDMock NDdetector to test PyMoDAQ functionnalities