Saravanan666/pypi-org huggingface dataset:
Package: pymvngit
Python Maven Git ToolTool to manage a group of Git/Maven projects together.SYNTAX:pymvngit [MACRO | FUNCTION] {argument(s)}EXAMPLES:pymvngit start
pymvngit build-all
pymvngit listProjects
pymvngit listMacros -v
pymvngit add-push -A Patch v0.5.7 "Bug Fix password field blank"
pymvngit status-all
pymvngit install-commons
pymvngit ltagsMACRO:
A sequence of Git/Maven commands to run sequentially over project(s) of a repository.REPOSITORY:
A collection of Git/Maven projects that can be managed together.RUNNINGFunctionsstart: Create a repository from the current directory. The current folder itself, and every first-level sub-folder, will be analyzed and if it's a Git/Maven project, will be part of this created repository. The name of the folder will be used to reference the project in Macros.clone: Create a repository cloning all the URL repository(ies) passed as argumentarguments:- Repositories.......: (1) -r "https://github/projectA, https://github/projectB"
                          or
                       (2) -f file-name.txt     # file with the list of repositories
- Local path.........: -p "/home/my/projects"
- Branch (optional)..: -b "develop"{cyan}       # "branch" is the default valuelistProjects: List the projects part of the repository associated with the current directory.listMacros: List the macros configured.arguments:- Show more details, print a table for each one of them: -vMacros[macro]: Name of a macro to be executed.
As example, some default macros are already available. In order to manage the macros: adding, modifying or removing, use the command:pymvngiteditMacros#or only emac for shortStructure of a Macro:"[INTERNAL-KEY]":{"key":"[NAME-MACRO]","description":"[DESCRIPTION]","executions":[{"tool":"[git OR maven]","command":"[COMMAND]","projects":["NAME-PROJECT","NAME-PROJECT"]},}Examples of macros:"1":{"key":"tag-everyone","description":"Tag all the projects","executions":[{"tool":"git","command":"tag -a $1 -m $2",##Whennoprojectareinformed,alloftherepositoryareused"projects":[]}]},"2":{"key":"commit-tag-customer","description":"Commit everything and tag the CustomerVision and CustomerVisionFeign project","executions":[{"tool":"git","command":"add -A","projects":["customer-view","customer-view-feign"]},{"tool":"git","command":"commit -m $1","projects":["customer-view","customer-view-feign"]},{"tool":"git","command":"tag -a $2 -m $3","projects":["customer-view","customer-view-feign"]}]},"2":{"key":"all-once","description":"Git status, commit, push for commons and clients","executions":[{"tool":"git","command":"status","projects":["commons","client"]},{"tool":"git","command":"add $1","projects":["commons","client"]},{"tool":"git","command":"commit -m $2","projects":["commons","client"]},{"tool":"git","command":"push","projects":["commons","client"]},{"tool":"git","command":"tag -a $3 -m $4","projects":["commons","client"]}]},"3":{"key":"test_tag","description":"Test Tag","executions":[{"tool":"git","command":"tag -a $1 -m $2","projects":["teachstore-commons"]}]}
Package: pymvr
python-mvrPython library for MVR (My Virtual Rig). MVR is part ofGDTF (General Device Type Format)MVR specification as perhttps://gdtf.eu/mvr/prologue/introduction/See source code for documentation. Naming conventions, in general, are
identical to that on the GDTF, CamelCase is replaced with
underscore_delimiters.Source codePyPi pageInstallationpipinstallpymvrTo install latest version from git via pip:python-mpipinstallhttps://codeload.github.com/open-stage/python-mvr/zip/refs/heads/masterUsageimportpymvrmvr_scene=pymvr.GeneralSceneDescription("mvr_file.mvr")forlayer_index,layerinenumerate(mvr_scene.layers):...#process dataSeeBlenderDMXandtestsfor
reference implementation.StatusCurrently implemented:AddressAlignmentChildListClassConnectionCustomCommandFixtureFocusPointGeometriesGeometry3DGoboGroupObjectLayerMappingOverwritePositionProjectorProtocolSceneObjectSourcesSupportSymbolSymdefTrussVideoScreenDevelopmentTypingAt this point, the--no-strict-optionalis needed for mypy tests to pass:mypypymvr/*py--pretty--no-strict-optionalFormatto format, useblackTestingto test, usepytestto test typing with mypy usepytest--mypy-mmypypymvr/*py
Package: pymw
Yet another MediaWiki client library for Python. It’s not stable yet and it requires Python 3.9+!InstallationpipinstallpymwUsageTo avoid directly providing username and password for login calls create a.pymw.jsonfile in your home directory with the following format:{"https://test.wikipedia.org/w/api.php":{"<Username@Special:BotPasswords>":{"BotPassword":"<BotPassword>"},"<Username2>":{"BotPassword":"<BotPassword>","limit":500}},"https://*.wikipedia.org/w/api.php":{"<Username>":{"BotPassword":"<BotPassword>"}}}As you can see, glob patterns are supported.Notable featuresHas apost_and_continuemethod that can handlecontinuations.Parameter values can bestror any Python iterable. Iterable values that are not anstrinstance will be converted to a pipe-joinedstrbefore being sent.Thepost_and_continuemethod automatically breaks a value that has too many items in it into several API calls according the API limit for the current user and yields the results. (Currently this feature works only if there is just one violating parameter. The algorithm might be improved in the future to handle more complex situations.)propmethod handlesbatchcompletesignals for prop queries and yields the results as soon as a batch is complete.Configurablemaxlag. Waits as the  API recommends and then retries.Automatically tries to login before performing actions that are known to require login.Automatically tries to login if an API call returnslogin-requirederror (requires username and password to be set in~/.pymw.json).Some convenient methods for accessing common API calls, e.g. forloginandupload.Lightweight.pymwis a thin wrapper. Method signatures are very similar to the parameters in an actual API URL. You can consult MediaWiki’s documentation if in doubt about what a parameter does.Thepost_and_continuemethod can handlemosttoomanyvalueserrors by automatically splitting the violating parameter into several API calls. (not a feature to rely on in production, but nice to have during a console session for example.)Supports setting a customUser-Agent headerfor eachAPIinstance.
Package: pymwalib
pymwalibA Python interface forMWATelescope/mwalibthat provides a simple
interface for reading MWA correlator raw visibilities, recombined voltages and exposing the relevant metadata. pymwalib and mwalib
both support reading data produced by the existing (legacy) MWA and the new MWAX systems.Seepymwalib Wikifor installation and usage infomation.
Package: pymwm
PyMWMPyMWM is a metallic waveguide mode solver written in Python.It provides the dispersion relation, i.e. the relation between propagation constant β = α + iγ (with phase constant α and attenuation constant γ) and angular frequency ω, for cylindrical waveguide, coaxial waveguide, and planer waveguide (slits). It also provides the distribution of mode fields.Version0.5.6InstallInstall and update using pip$ pip install -U pymwmInstall using conda$ conda create -n pymwm python=3.8
$ conda activate pymwm
$ conda install -c mnishida pymwm
$ pip install "ray[default]"Dependenciespython 3numpyscipypandaspytablesraymatplotlibriipUninstall$ pip uninstall pymwmor$ conda deactivate
$ conda remove -n pymwm --allUsageLet's consider a cylindrical waveguide whose radius is 0.15μm filled with water (refractive index : 1.333) surrounded by gold.
You can specify the materials by the parameters forRII_Pandas.
Wavelength range is set by the parameters 'wl_min' (which is set 0.5 μm here) and 'wl_max' (1.0 μm).
PyMWM compute the dispersion relation the two complex values, ω (complex angular frequency) and β (propagation constant).
The range of the imaginary part of ω is set from -2π/wl_imag to 0 with the parameter 'wl_imag'.
Usually, the cylindrical waveguide mode is specified by two integers, n and m.
The number of sets indexed by n and m are indicated by the parameters 'num_n' and 'num_m', respectively.>>> import pymwm
>>> params = {
     'core': {'shape': 'cylinder', 'size': 0.15, 'fill': {'RI': 1.333}},
     'clad': {'book': 'Au', 'page': 'Stewart-DLF'},
     'bounds': {'wl_max': 1.0, 'wl_min': 0.5, 'wl_imag': 10.0},
     'modes': {'num_n': 6, 'num_m': 2}
     }
>>> wg = pymwm.create(params)If the parameters are set for the first time, the creation of waveguide-mode object will take a quite long time, because a sampling survey of βs in the complex plane of ω will be conducted and the obtained data is registered in the database.
The second and subsequent creations are done instantly.
You can check the obtained waveguide modes in the specified range by showing the attribute 'modes';>>> wg.modes
{'h': [('E', 1, 1),
  ('E', 2, 1),
  ('E', 3, 1),
  ('E', 4, 1),
  ('M', 0, 1),
  ('M', 1, 1)],
 'v': [('E', 0, 1),
  ('E', 1, 1),
  ('E', 2, 1),
  ('E', 3, 1),
  ('E', 4, 1),
  ('M', 1, 1)]}where 'h' ('v') means that the modes have horizontally (vertically) oriented electric fields on the x axis. The tuple (pol, n, m) with pol being 'E' or 'M' indicates TE-like or TM-like mode indexed by n and m.
You can get β at ω=8.0 rad/μm for TM-like mode with n=0 and m=1 by>>> wg.beta(8.0, ('M', 0, 1))
(0.06187318716518497+10.363105296313996j)and for TE-like mode with n=1 and m=2 by>>> wg.beta(8.0, ('E', 1, 2))
(0.14261514314942403+19.094726281995463j)For more information, see thetutorial notebookandUser's Guide.ExamplesCylindrical waveguidePropagation constantsElectric field and magnetic field distributionsTE01HE11HE12HE21HE31TM01TM02EH11EH21Slit waveguidePropagation constantsElectric field and magnetic field distributionsTE1TE2TE3TE4TM0TM1TM2TM3
Package: pymworks
This is a pure-python module for reading mworks data files.Requirements----Nothing for 'basics' on python 2.7python 2.6 requires lxml because the ElementTreeincluded with py2.6 does not support enough XPathprotocol inspection requires networkx====Intro====MWorks files are made up of events. Each event hastimeUnsigned integer. Time of event (in microseconds).May be relative to system time or server start time.codeUnsigned integer. Number assigned to this type of event.Some are standard (0 = codec, etc...) others are experiment dependent.valueFlexible type. The 'payload' of the event.May be a dict, list, int, None, etc...One special event (name = 'codec', code = 0) is useful for understandingother events. The codec contains (as a value) a dictionary of codes (as keys)and names (as values).Opening files----An MWorks file can be opened in pymworks using pymworks.open_file.::import pymworksfn = 'foo.mwk'df = pymworks.open_file(fn)By default, open_file with index the file (speeding up event fetching).This index is written to disk as as a hidden file ('.' pre-pended).For the above example (opening foo.mwk) a index file '.foo.mwk' would becreated if it did not already exist. If you do not want to index the file,set the indexed kwarg to False for open_file:::df = pymworks.open_file(fn, indexed=False)The codec for this datafile is accessable as df.codec and for convenience areversed version (keys=names, values=codes) is available as df.rcodec::df.codec  # dict, keys = codes, values = event namesdf.rcodec  # dict, keys = event names, values = codesReading events----Events can be accessed several ways, the easiest being df.get_events.::evs = df.get_events()  # get all eventscevs = df.get_events(0)  # get all events with code 0# get all events with name 'success'sevs = df.get_events('success')# get_events also accepts a list of names (or codes)toevs = df.get_events(['success', 'failure', 'ignore'])# or a timerange (in microseconds)eevs = df.get_events(time_range=[0, 60 * 1E6])  # events during first minuteEvents (type pymworks.datafile.Event) each contain a time, code and value::e = df.get_events('success')[0]  # get first success evente.time  # time of event (in microseconds)e.code  # event codee.value  # value for event====Notes====LDOBinary.py and ScarabMarshal.py are originally from the mworks/mw_data_tools repoLDOBinary.py was fixed to actually work and not just throw errors
Package: pymwp
pymwp: MWP analysis in Pythonpymwp is a tool for automatically performing static analysis on programs written in C.
It is inspired by"A Flow Calculus of mwp-Bounds for Complexity Analysis".
It analyzes resource usage and determines if a program's variables growth rates are no more than polynomially related to their inputs sizes.
Try our onlinedemoto see it action.
For more details on usage and behavior, see pymwpdocumentation, particularlysupported C language features.Documentation and DemoRefer tostatycc.github.io/pymwpfor a documentation, anonline demo, and a presentation ofexamples.InstallationInstall the latest release from PyPIpip install pymwpHow to UseTo analyze a C file, run:pymwp path/to_some_file.cFor all available options and help, run:pymwp --helpYou can also use pymwp by importing it in a Python script:frompymwpimportPolynomialfrompymwp.matriximportidentity_matrix,showmatrix=identity_matrix(3)matrix[0][1]=Polynomial('m')matrix[1][0]=Polynomial('w')matrix[2][1]=Polynomial('p')show(matrix)Seemodules documentationfor available methods.Running from sourceIf you want to use the latest stable version (possibly ahead of
latest release), use the version from source following these steps.Clone the repositorygit clone https://github.com/statycc/pymwp.gitSet up Python environment (usevenv)install required packagespython -m pip install -r requirements.txtNote: for development purposes install dev dependencies instead:python -m pip install -r requirements-dev.txtRun the analysisFrom project root run:python -m pymwp path/to_some_file.cfor example:python -m pymwp c_files/basics/if.cfor all available options and help, run:python -m pymwp
Package: pymwr
PyMWRPyMWR is a Python package for interacting with microwave radiometer (MWR) data. It allows users to read, plot, and analyze MWR data from various sources.InstallationTo install PyMWR, run the following command:pipinstallpymwrAlternatively, you can install it from source:pip install git+https://github.com/imsayyed/pymwr.gitOr, you can install it in --user mode:gitclonehttps://github.com/imsayyed/pymwr.gitcdpymwrpythonsetup.pyinstall--userUsageHere is anexampleof how to read and plot MWR data using PyMWR.ContributingIf you would like to contribute to PyMWR, please read the Contributing Guidelines.LicensePyMWR is licensed under the MIT License.AuthorsImran Sayyed(sayyed950@gmail.com)Hamid Ali Syed(hamidsyed37@gmail.com)
Package: pymws
Python MWS ClientPython client for Amazon Marketplace Web Services (MWS)Free software: MIT licenseDocumentation:https://pymws.readthedocs.io.Installationpip install pymwsUsageImport the packagefrompymwsimportMWSCreate a client instanceclient=MWS(marketplace="US",merchant_id="1234",access_key_id="key",secret_key="secret",auth_token="token")Once you have a client with valid credentials, you can now
call operations.start_date=datetime(2020,1,20,10,30)client.orders.list_orders(CreatedAfter=start_date)History0.1.0 (2020-08-08)First release on PyPI.
Package: pymx2
pymx2This is a python driver to communicate with an Omron MX2 inverter through Modbus (manufacturer's page). It is based on datasheet rev.2 (Jan 2013).RequirementsAn RS-485 adapterpySerialWhat is providedCommands to handle low-level functions provided by the inverter:Read coil status (01h)Read holding register (03h)Write in coil (05h)Write in holding register (06h)Loopback test (08h)Write in coils (0Fh)Write in holding registers (10h)Read/write in holding registers (17h)A list of available coils and registers in the form of enums in mx2.enums:Coil: list of coil addressesModbusRegisters: registers available only through ModbusStandardFunctions: A group registers as described in datasheet pp. 90-120FineTuningFunctions: B group registers (pp. 121-153)IntelligentTerminalFunctions: C group registers (pp. 153-171)MonitoringFunctions: D group registers (pp. 74-88)MainProfileParameters: F group registers (p. 89)MotorConstantsFunctions: H group registers (pp. 172-178)OtherParameters: P group registers (pp. 179-190)SecondMotorFunctions: registers from different groups assigned to 2nd motor configurationData types to handle returned values and keep tracks of associated coils and registers:CoilValue: holds a reference to a coil address and a boolean valueRegisterValue: holds a reference to a register address and an integer valueThere are so many separate coils and registers that I didn't find appropriate to create a class method for each of them. Allowed values and units for each register can be found in the relevant datasheet pages. Register sizes are handled automatically.
An exception is made for fault monitors, for which as specific class method is provided.
Several examples are available in theexamplesfolder.
API documentation can be found within the code or in thedocsfolder (seebelow).
Don't hesitate to report bugshere.SetupYou can download a release from pypi using pip or clone this repository and install manually.From pypiFrom command line, use:python-mpipinstallpymx2From repositoryFrom command line, use:gitclonehttps://github.com/vpaeder/pymx2.gitcdpymx2
python-msetup.pyinstallExamplesSeeexamplesfolder.TestsThetestsfolder contains unit tests for most of the aspects of this package. To run them, use:python-munittestAPIYou can find docs in thedocsfolder (generated from python docstrings). Alternatively, you can rely on python docstringseither from the command line, use pydoc:python-mpydocmx2or from within python:importmx2;help(mx2)
Package: pymy
1) InstallationOpen a terminal and install pymy packagepip install pymy2) UseBe sure that you have set environment variables with Redshift credentials like this:export MYSQL_{INSTANCE}_DATABASE=""
export MYSQL_{INSTANCE}_USERNAME=""
export MYSQL_{INSTANCE}_HOST=""
export MYSQL_{INSTANCE}_PORT=""
export MYSQL_{INSTANCE}_PASSWORD=""Be also sure that your IP address is authorized for the mysql cluster/instance.Prepare your data like that:data={"table_name":'name_of_the_redshift_schema'+'.'+'name_of_the_redshift_table'"columns_name":[first_column_name,second_column_name,...,last_column_name],"rows":[[first_raw_value,second_raw_value,...,last_raw_value],...]}Send your data (use the same {INSTANCE} parameter as environment variables):importpymypymy.send_to_redshift(instance,data,replace=True,batch_size=1000,types=None,primary_key=(),create_boolean=False)replace (default=True) argument allows you to replace or append data
in the tablebatch_size (default=1000) argument also exists to send data in
batchstypes, primary_key and create_boolean are explained below3) First ExampleYou have a table called dog in you animal scheme. This table has two columns : ‘name’ and ‘size’.
You want to add two dogs (= two rows) : Pif which is big and Milou which is small.datawill be like that:importpymydata={"table_name":'animal.dog'"columns_name":['name','size'],"rows":[['Pif','big'],['Milou','small']]}pymy.send_to_redshift({INSTANCE},data)4) Functioncreate_tablepymy has acreate_tablefunction with this signature:importpymypymy.create_table({INSTANCE},data,primary_key=(),types=None)This function is automatically called in thesend_to_redshiftfunction if the table is not created. You can also call it with the “create_boolean” parameter of thesend_to_reshiftfunction or by setting “primary_key” or “types” parameters.primary_key : if you have 3 columns (ie: columns_name=[a,b,c]) and you want to set b as primary key, set primary_key=(b)types:create_tablefunction guesses types of each column. But you can set a “types” argument. It is a dictionary like {‘b’: ‘VARCHAR(12)’} or  {‘b’: ‘INTEGER NOT NULL’} to set types of b column.
Package: pymyair
API for Advantage Air MyAirA simple Python API that wraps the HTTP based API exposed by the MyPlace service that runs on Advantage Air supplied Android tablets.It can be used to control the MyAir 5 AC zoning system from Advantage Air.Free software: MIT licenseFeaturesZone setting, on/off. Temperature set points or percentagePer AC, on/off, heat/dry/ventFan speed adjustmentMyZone settingReading current temperature of each zone (hidden by default in apps)Access to system and zone level infoCLI interfaceQuickstartCLIpip install pymyair
myair --help
myair 192.168.1.120 zones
myair 192.168.1.120 on
myair 192.168.1.120 set --zone 3 --temp 26 --state onAPIfrom pymyair.pymyair import MyAir

ma = MyAir(host="192.168.1.120")
ma.update()
ma.mode = 'on'
ma.myzone = 6
ma.setZone(id=3, state='on', set_temp=26)IP Address of WebServiceThe webservice used by this API is the only available on the same LAN as the
android tablet. There is no support for the remote access APIs used by MyAir.
You can find the IP of the android tablet in Wifi Settings - Advanced.
It’s recommended to set your MyAir android tablet to set a static dhcp entry on your
router/dhcp server.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.2.1 (2020-01-07)Updated readme and version strings0.2.0 (2019-12-28)Fixed Python 2.7 compatibility0.1.0 (2017-12-04)First release on PyPI.
Package: py-myaskapi
py-myaskapiDescriptionThis library makes it easy to interface with MyAskAPI'sAPI.InstallationSimplue install using pip or your favorite package management tools.pip install py-myaskapiThis will install theRequestslibrary.UsageYou can initialize it like this:ma = myask_api.MyAskAPI(
    api_url='https://myaskai.com/api/1.1/wf/',
    client_id=settings.MYASK_AI_ID,
    api_key=settings.MYASK_AI_API_KEY)
# Now let's push some content to the API
ma.content(
    file_url=f'https://example.com/example-page/?version=json',
    meta_title='Example Page 101',
    meta_author='Ed Menendez',
    meta_link=f'https://example.com/example-page/',
)Note: You should store your API keys outside of the code repository.CreditsThank you toLearnWPTfor permitting publishing of this code.LicenseMIT LicenseHow to ContributeFeel free to submit a PR. Test scripts would be nice! Please seeContributor Covenantfor our code of conduct.
Package: pymycity
Supported citiesMascouche:https://ville.mascouche.qc.caMontréal:http://ville.montreal.qc.caInstallationpip install pymycityUsage± pymycity
usage: pymycity [-h] [-T TIMEOUT] {mascouche,montreal} ...


Cities:
    * mascouche:
        + garbage_collection:
            - List next garbage collection
        + taxes:
            - List next taxes dates
        + events:
            - List next city events
    * montreal:
        + taxes:
            - List next taxes datesDev envvirtualenv -p /usr/bin/python3 env
pip install -r requirements.txt
Package: pymydumper
pymydumperpymydumperis a Python-based tool inspired byhttps://github.com/mydumper/mydumperto easily and quickly
create logical backups of MySQL or MariaDB databases. It's been written from the ground up to guarantee consistency and
speed, being tested in databases over 10's of TB in size.Table of ContentsInstallationLicenseInstallationpip install testhatchLicensepymydumperis distributed under the terms of theMITlicense.