Saravanan666/pypi-org huggingface dataset:
Package: pymlog
MLogA minimal logging utility for machine learning experiments.Installation>pipinstallpymlogLoggingimportmlogimportrandomCONFIG={'num_epochs':100}# Create a new run with an associated configurationrun=mlog.start(run='run_name',config=CONFIG,save='*.py')# Log seamlesslyforepochinrange(CONFIG['num_epochs']):loss=random.random()*(1.05**(-epoch))run.log(epoch=epoch,loss=loss)metric=random.random()run.log(epoch=epoch,metric=metric)Quick preview>mlogplotepochloss
>mlogplotepochloss--aggregatemedian
>mlogplotepochloss--aggregatemedian--intervalsmax
>mlogplotlossmetric--scatterManage runs>mloglist_namenum_epochslearning_ratebatch_size
_run_id1run1000.001322run1000.001323run1000.001324run1000.001325run1000.001326run1000.001327run1000.001328run1000.001329run1000.0013210run1000.00132This command starts an interactive interface where you can use commands like:hjklto navigate left, down, up and right,gGto go up and down,dto delete run,spaceto preview plot,qto exit.Plottingimportmlogimportpandasaspdimportmatplotlib.pyplotasplt# Retrieve datadf=mlog.get('epoch','loss')df=df.groupby('epoch').aggregate(['mean','min','max'])# Plot datafig,ax=plt.subplots()ax.plot(df.index,df.loss['mean'])ax.fill_between(df.index,df.loss['min'],df.loss['max'],alpha=0.4)plt.show()
Package: pymltk
pymltkPython Machine Learning ToolkitDescriptionpymltkis a Python package helping data scientists with
their daily work of (pre)processing data and building predictive
or other machine learning models. Itoffers various Python
functions which implement common operations done by data
scientists during their daily work.All functions of this package …… do one thing and (try to) do it well.… operate on pandas as well as dask dataframes.… are fully tested and documented.… offer a clean and consistent UI.This package was inspired bymlr,
a R package which offers similar functionality with respect to data
(pre)processing (but in addition offersa lotmore).Function Overviewparse_columns: Parsing features with a specified dtype.parse_missings: Parsing specified values as missing values.merge_levels: Merging levels/values of a feature depending on several criteria.impute_missings: Imputing missing values based on several strategies.remove_constants: Removing features with no/low variability.InstallationCurrently only the development version in this repository is available. In the future,
a stable release on pypi is planned.DocumentationA detailed documentation of each function provided bypymltkis
available onreadthedocs.org.ContributionFeature requests and bug reports are very welcome. Please open an issue
in the github issue tracker of the respository of this project. Pull requests
implementing new functionality are, of course, also welcome. Please open
in addition also an issue for those.Licensepymltkis licensed under the Apache License Version 2.0.
For details please see the file called LICENSE.NoteThis project has been set up using PyScaffold 2.5.6. For details and usage
information on PyScaffold seehttp://pyscaffold.readthedocs.org/.
Package: pymlutil
pymlutilPython Machine Learning utilities:functionsGaussianBasisComputes a unit height gaussian bell curve function$ GaussianBasis(x, zero, sigma) = e^{-\frac{(x-zero)^2}{2*sigma^2}} $ \x : function inputzero : location of the peak centersigma: curve with or standard deviationdefGaussianBasis(x,zero=0.0,sigma=0.33)Example:x=np.arange(-2.0,2.0,0.01)y=GaussianBasis(torch.tensor(x))plt.plot(x,y)plt.show()imutialjsonutilcmd(command, check=True, timeout=None): execute subprocess.call prining the execution time and resultsmetricss3python3 -clone 

### torch_util

### version

### workflow


[Packaging Python Projects](https://www.freecodecamp.org/news/build-your-first-python-package/)
[How to Publish an Open-Source Python Package to PyPI](https://realpython.com/pypi-publish-python-package/)

- Install twine:
    ```cmd
    pip3 install twine
    ```

- Build whl:
    ```cmd
    py setup.py sdist bdist_wheel
    ```

- Upload package to pipy
    ```cmd
    twine upload dist/*
    ```

[pymlutil](https://pypi.org/project/pymlutil)

- Load package into project
    ```cmd
    pip3 install --upgrade pymlutil
    ```

- Include pymlutil into project
```cmd
from pymlutil import *NotesPackaging and Distributing Python ProjectsPackage Discovery
Package: pymma
pymma is an RF to APRS-IS gateway supporting several backends:PulseaudioALSARTL-SDRHackRF (via Soapy)You can inject frames directly from RF (SDR), or from an audio source (ALSA).pymma vs. pymultimonaprspymma is derived from Dominik Heidler’s work onhttps://github.com/asdil12/pymultimonaprsCredit for the majority of the work on pymma goes to @asdil12, et al. pymma is
intended as a fork from pymultimonaprs. While I plan to match capabilities and
contribute back to the pymultimonaprs project, pymma will vary in several aspects.Every intention has been made to credit Dominik throughout this code, and to
maintain and uphold GPL (to the best of my understanding).It goes without saying that @asdil12 did most of the heavy lifting :).Versions1.3.x will be the last branch to support Python 2.7.x.2.x will support Python 3.6.x only.InstallationInstall multimon-ngInstall rtl-sdr or soapy (for RTL-SDR backend)Runmake installConfigurationEdit/etc/pymma.jsonBackendSet the source tortl,alsa, orpulseto select the backendStatusSet the statustext, or set a statusfile- the content of this file will be read at runtime and sent as status.
This way you can eg. monitor your battery status using APRS-IG.
Set bothtextandfiletofalseto disable status beacon.Position AmbiguityTo hide your exact position you can set the ambiguity value to a value from 0 to 4.
- 0 will not hide anything
- 1 will decrease precision to 1/10 of a min
- 2 will decrease precision to 1 min
- 3 will decrease precision to 10 min
- 4 will decrease precision to 1°WeatherYou can setweatherto a json-file. eg:“weather”: “/path/to/weather.json”,If you don’t want do send weather date, just leave it onfalse.
This will be read in like the status-file and can look like that:{
    "timestamp": 1366148418,
    "wind": {
            "speed": 10,
            "direction": 240,
            "gust": 200
    },
    "temperature": 18.5,
    "rain": {
            "rainlast1h": 10,
            "rainlast24h": 20,
            "rainmidnight": 15
    },
    "humidity": 20,
    "pressure": 1013.25
}Legendtimestampis seconds since epoch -mustbe includedwindspeedis in km/hdirectionis in deggustis in km/htemperatureis in °Crainrainlast1his in mmrainlast24his in mmrainmidnightis in mmhumidityis in %pressureis in hPaThe timestampmustbe included - everything else is optional.SymbolThe correct symbol is already selected.
If you still want to change it, you can find the symbol table [here](https://github.com/asdil12/pymma/wiki/Symbol-Table).IPv4 / IPv6To select a protocol you can setpreferred_protocoltoipv4,ipv6orany.
You use a raw IPv6 address as a gateway like this:“[2000::1234]:14580”.RunningIt is recommended you run pymma with supervisor or systemd.Runsystemctl start pymmaor justpymma -vfor testing.Chef CookbookSeehttps://github.com/ampledata/cookbook-pymmaSourceGithub:https://github.com/ampledata/pymmaAuthorGreg Albrecht W2GMD <oss@undef.net>CopyrightCopyright 2016 Dominik HeidlerLicenseGNU General Public License, Version 3
Package: pymmails
pymmails: send and grab mailsThe module was started to grab emails using IMAP and to store them on a local disk.
It is now used to download material sent by students before an oral presentation,
which is quite annoying to do manually.from pymmails import MailBoxImap, EmailMessageRenderer

user = "your.email"
pwd = "passsword"
server = "imap.your_provider.ext"

box = MailBoxImap(user, pwd, server)
render = EmailMessageRenderer()
box.login()
for mail in box.enumerate_mails_in_folder("saved", pattern="<pattern>") :
    mail.dump(render, location=temp, fLOG=fLOG)
box.logout()
render.flush()Some examples of patterns:pattern='FROM "xavier" SINCE 1-Feb-2013'
pattern='FROM "xavier" SINCE 1-Feb-2013 BEFORE 5-May-2013'
pattern='FROM "xavier" SINCE 1-Feb-2013 BEFORE 5-May-2013 UNANSWERED'
pattern='CC "jacques" FROM "xavier" DELETED'
pattern='TEXT "github"'
pattern='LARGER 10000 SMALLER 1000000'
pattern='SUBJECT "programmation"'
pattern='TO "student" FLAGGED'
pattern='UNSEEN'Links:GitHub/pymmailsdocumentationBlogHistorycurrent - 2020-11-02 - 0.00Mb0.2.290 - 2019-01-18 - 0.03Mb3: add list of attachements at the end of the summary (2019-01-15)1: rename flake8 into code_style (2018-04-14)
Package: pyMMAopt
pyMMAoptPython implementation of the Method of Moving Asymptotes optimization algorithm
described inSvanberg, K., The method of moving asymptotes- a new method for structural optimization. International journal for numerical methods in engineering, 1987. 24(2): p. 359. Originally implemented inGetDPproject.LLNL Release Number: LLNL-CODE-817087Installpip3 install .
Package: pymmaster
MMASTER-workflowsThis repository hosts the workflows for the MMASTER procesing methods of ASTER-L1A stereo imagery. The method itself is documented in [Girod et al, 2017, http://dx.doi.org/10.3390/rs9070704 ]Documentation on readthe docs :https://mmaster-workflows.readthedocs.io/en/latest/index.html
Package: pymmbgui
Table of ContentsOverviewHistoryDetailsRequirementsInstallationUninstallContributingSponsoringCreditsChangelogOverviewPyMMBguiis a simple GUI (Graphical User Interface - i.e. desktop program)
to allow access to BBC Microcomputer DFS disc images, and MMB image bundles.HistoryThe BBC Microcomputer has been around for many years (over 30 years now),
and in all that time it has supported Tape, Floppy Disk, and occasionally
small Hard Disk Drive storage (If you have a 1770 and ADFS) but thanks to
the work of a number of enthusiasts there is now an inexpensive add-on to
allow any BBC Microcomputer (even those without Floppy Disk hardware) to
access mass storage on MMC Flash Cards.This is wonderful but then poses a further problem, how to get the disk
images that the MMC/SuperMMC/TurboMMC hardware supports onto the flash card?There are some tools which have been used for several years, they work ok,
as long as you are running a supported version of Windows (They don’t work,
for example, under Wine or CrossoverOffice), but I’ve found them a little
confusing. The process to create an MMB, add a new disk and put files on it
is well documented but requires several steps and provides ample opportunity
for mistakes.DetailsThis is where PyMMB is intended to fit in. The aim of the project is to
provide a platform independant library, command-line toolset, GUI application
and FUSE binding for managing files stored on DFS disks, contained within
MMB files.This package is the GUI application designed to provide a simple user
interface to all the common operations you might want to perform on your DFS
or MMB files before transferring them to your BBC Microcomputer.RequirementsPyMMB - The library (part of the PyMMB project) which supports all
all MMB and DFS access functionalityThis package is written for Python 2.x (at least 2.5) and currently is not
supported under Python 3.xInstallationYou can install PyMMBgui with your favourite egg installer. We recommend usingpippip install PyMMBguiUninstallIf you are usingpipyou can uninstall usingpip uninstall PyMMBguiContributingContributions of code, development time, testing, or money are welcome. If
you are kind enough to donate money, your name (and optionally company name,
and email or web address) will be listed as a sponsor.You can join the project, see the current auto-build status, download the
code or browse the repository athttp://projects.tlspu.com/PyMMB/SponsoringDevelopment of this project is being sponsored by the following generous
individuals or organisations :CreditsAcorn Computers - For producing probably the most innovative computer
for its time ever.Martin Mather - For developing the original MMC Flash Card interface
(and the MMB file format which bears his initials) for the BBC Micro.Steve O’Leary - The code for FS Manager which helped me understand both
MMB and DFS formats better.Changelog0.5First release
Package: pymmcore-MDA-writers
pymmcore-MDA-writersThis package provides writers forpymmcore-plus. At the time of writing pymmc+ provides hooks for saving images but does not implement
any mechanism for saving image (check inhttps://github.com/tlambert03/pymmcore-plus/pull/29for updates). Currently provided are:A simple multifile tiff writer - can be loaded withtifffileA simple zarr writer - not ome-zarrpipinstallpymmcore-mda-writers(This will require a minimum of pymmcore-plus>=0.4.0 which has not yet been released. You can install a working version withpip install git+https://github.com/tlambert03/pymmcore-plus)All you need to add to your script is:# tiff writerwriter=SimpleMultiFileTiffWriter("data/tiff_writer_example/run")# zarr writerwriter=ZarrWriter("data/zarr_writer_example/run",img_shape=(512,512),dtype=np.uint16)for a complete example see the examples folder.
Package: pymmcore-midi
pymmcore-midiMIDI Device control for microscopes using pymmcoreInstallationpipinstallpymmcore-midiUsageCreate apymmcore_midi.DeviceMapobject (can be done from a YAML/JSON file),
then connect it to apymmcore-plusCMMCorePlusobject.device_name:X-TOUCH MINImappings:-[button,8,Camera,AllowMultiROI]-[button,9,Camera,Binning]-[knob,2,Camera,Gain]-[knob,9,Camera,CCDTemperature]# can also use this form-message_type:control_changecontrol_id:1device_label:Cameraproperty_name:Exposure-message_type:buttoncontrol_id:10core_method:snap-message_type:knobcontrol_id:17core_method:setAutoFocusOffsetcore=CMMCorePlus()core.loadSystemConfiguration()dev_map=DeviceMap.from_file(f)dev_map.connect_to_core(core)Now when you move a knob or press a button on your MIDI device, the
corresponding property/method will be updated/called on theCMMCorePlusobject. :tada:Debugging/DevelopmentUse the environment variablePYMMCORE_MIDI_DEBUG=1to print out the MIDI
messages that are being received from your device. (This is useful to determine
the appropriate message type and control ID for your device map.)
Package: pymmcore-widgets
pymmcore-widgetsA set of widgets for thepymmcore-pluspackage.
This package can be used to build custom user interfaces for micromanager in a python/Qt environment.
It forms the basis ofnapari-micromanager:book: DocumentationSee complete list of available widgets in thedocumentationInstallationpipinstallpymmcore-widgets# note that this package does NOT include a Qt backend# you must install one yourself, for example:pipinstallPyQt5# package is tested against PyQt5, PyQt6, PySide2, and PySide6
Package: pymmd
.. image:: https://img.shields.io/pypi/v/pymmd.svg:target: https://pypi.python.org/pypi/pymmd/:alt: Latest Version.. image:: https://img.shields.io/pypi/dm/pymmd.svg:target: https://pypi.python.org/pypi/pymmd/:alt: Downloads.. image:: https://img.shields.io/pypi/l/pymmd.svg:target: https://pypi.python.org/pypi/pymmd/:alt: License.. image:: https://landscape.io/github/jasedit/pymmd/master/landscape.svg?style=flat:target: https://landscape.io/github/jasedit/pymmd/master/:alt: Code Healthpymmd============Python wrapper for `MultiMarkdown <https://github.com/fletcher/MultiMarkdown-5>`_, which converts MultiMarkdown flavored text into one of several outputs formats. This package directly wraps the reference implementation, and provides a simple interface to the library.The `ctypes <https://docs.python.org/2/library/ctypes.html>`_ package is used to wrap libMultiMarkdown in a portable fashion.Installation=============This package requires MultiMarkdown installed as a shared library in order to function. For Windows and macOS, the shared library is included in the distributed package.This package can be installed via pypi:.. code:: bashpip install pymmdFor Linux users, the shared library can be installed by executing:.. code:: bashpython -c "import pymmd; pymmd.build_mmd()"Which will download, build, and install the required library within the package's directory. This may need to be run with `sudo` if the package is installed to a system-level site-packages directory.Verifying the package is working as intended can be accomplished via a simple test command, which should print out the MultiMarkdown version in use:.. code:: bashpython -c "import pymmd; print(pymmd.version())"Examples=============Converting a string of MultiMarkdown directly to various outputs:.. code:: pythonimport pymmd# Generate string of MultiMarkdown text named datahtml_output = pymmd.convert(data)latex_output = pymmd.convert(data, fmt=pymmd.LATEX)#Generate a snippethtml_snippet = pymmd.convert(data, ext=pymmd.SNIPPET)Conversion can be performed with the `Transclusion <http://fletcher.github.io/MultiMarkdown-5/transclusion>`_ capabilities of MultiMarkdown, either by specifying the directory name:.. code:: pythonimport pymmdwith open('./document.mmd') as fp:src = fp.read()output = pymmd.convert(src, dname='.')Files can also be converted directly from file:.. code:: pythonimport pymmd#MMD file named data.mmdhtml_output = pymmd.convert_from("./data.mmd")
Package: pymm-eventserver
pymm-eventserverEvent Server to receive Micro-Manager events in python via zeromqThis module functions as a plugin for Micro-Manager and takes a lot of inspiration and some
functionality from PycroManager (https://pycro-manager.readthedocs.io/en/latest/index.html)The server follows the logic of Pycromanager:Install using pippip install pymm_eventserver
python
>>> import pymm_eventserver.setup
>>> pymm_eventserver.setup.install_java_server()sequenceDiagram
    MicroManager->>ZMQ: Event
    activate MicroManager
    Note over MicroManager: Store java object
    ZMQ->>PythonEventServer: Event-ID
    PythonEventServer->>Code: pyqtSignal
    Code-->>ZMQ: Function call (Event-ID)
    ZMQ-->>MicroManager: Call on Java object
    MicroManager->>ZMQ: Output
    ZMQ->>Code: Output
    Note over MicroManager: Keep object for <br> later calls
    deactivate MicroManagerThe exception are events that contain image data. As keeping those object in memory on the java
side will lead to pretty heavy memory usage in the ImageJ heap space pretty quickly. So these are
sent directly over the zeromq bus. If they are not received correctly, the image data will be lost.
Package: pymmg
pymmg - Surface and volume remeshersBringingMMGsurface and volume remeshers to Python.
This package is a wrapper around the MMG toolsFeaturesSurface remeshingVolume remeshingArea remeshingAdaptive mesh refinementLoad multiple file formats usingmeshioAbaqus(.inp),
ANSYS msh (.msh),AVS-UCD(.avs),CGNS(.cgns),DOLFIN XML(.xml),Exodus(.e,.exo),FLAC3D(.f3grid),H5M(.h5m),Kratos/MDPA(.mdpa),Medit(.mesh,.meshb),MED/Salome(.med),Nastran(bulk data,.bdf,.fem,.nas),Netgen(.vol,.vol.gz),Neuroglancer precomputed format,Gmsh(format versions 2.2, 4.0, and 4.1,.msh),OBJ(.obj),OFF(.off),PERMAS(.post,.post.gz,.dato,.dato.gz),PLY(.ply),STL(.stl),Tecplot .dat,TetGen .node/.ele,SVG(2D output only) (.svg),SU2(.su2),UGRID(.ugrid),VTK(.vtk),VTU(.vtu),WKT(TIN) (.wkt),XDMF(.xdmf,.xmf).InstallationpipinstallpymmgNOTE: you can the full-blownpymmgconverter withnetcdf4andh5pyby doing:pip install pymmg[all]UsageSurface remeshingpython-mmmgsinput.meshoutput.meshVolume remeshingpython-mmmg3dinput.meshoutput.mesh2D remeshingpython-mmmg2dinput.meshoutput.mesh
Package: py-mms
# py-mms (COEX MMS API Client)The Python interface to MMS.## Installpip install py-mms## Getting Startedimport mmsmms_client = mms.api.MMSClient(API_URL, API_ID, API_KEY)email_message = mms_client.create_email_message(subject='Test e-mail',sender='john.doe@example.com',message_type=mms.choices.EMAIL_TRANSACTIONAL_EMAIL_MESSAGE_TYPE)About us--------[COEX](http://www.coex-webdesign.com/) is small-sized company. We have beencreating custom webs and online applications since 2002. We communicate withour clients in a way so that our solutions would be reasonable, provideoptimum service under the given circumstances and serve their purpose inthe long term.
Package: pymmWave
pymmWaveDocumentation can be found here:https://pymmwave.readthedocs.io/en/latest/#Goals:
An easy to use mmWave library to get up and running within minutes.
Simple data interfacing, and complete type hinting.
Easy classes to implement for custom implementations.This library is reliant on Python's asyncio package. User applications should interface with this tool with some sort of event loop manager.
Future support around this may be built.This is designed to function with the COTS TI IWR6843AOP system. The abstract classes are designed to be used in a more generic manner, and have been already used to implement a 2D LiDAR solution.Please read the license file and note that this software is still in an ALPHA state.Please report any bugs as Github issues.TODO:Pose estimation based on trajectory.Perhaps continuous estimated state management.
Package: pymnl
pymnl (rhymes with hymnal) is a pure Python re-implmentation of libmnl
and provides a minimal interface to Linux Netlink sockets and messages.
The author and maintainer is Sean Robinson <robinson@tuxfamily.org>.pymnl should be compatible with Python > 2.4.  An effort has been made
to allow pymnl to work with Py2 and Py3 from a single code base.  See
“Using pymnl with Python 2 vs Python 3” in python-versions.rst for
version-specific caveats.More information is available athttp://pymnl.tuxfamily.org.See the API checklist in api-checklist.rst for a detailed list of
which libmnl functions have been implemented.A short changelog in Changelog.rst describes the general and API
changes for every release.Example ApplicationsThe examples directory contains small examples of how to use pymnl with
various Netlink protocols.  These are re-implementations of the examples
provided in libmnl.Files and Directories./docs/ - minimal documentation
./docs/source - supporting documentation (RST files)
./docs/build/html - supporting documentation (HTML files)
./examples/ - sample uses of pymnl module
./pymnl/ - the module source code
./pymnl/tests/ - unittest test cases
./pymnl/tests/testcommand.py - a setup.py test command to run unit tests
./Makefile - convenience commands for developers
./README - this file
./MANIFEST.in - instructions detailing files to include in distribution
./setup.py - installation scriptUsing pymnl Before InstallIt is possible to run the included test cases and examples by adding the
pymnl root directory to the PYTHONPATH environment variable.  Such as,PYTHONPATH=. python examples/genl/genl-family-get.py nl80211from the pymnl root directory.  Or, like,PYTHONPATH=.. python ../setup.py test –test-list pymnl.tests.nlsocketfrom within the ./pymnl/ directory.Licensepymnl is licensed under LGPLv2+, however, the examples are licensed
under GPLv2+.WarrantyThere is none.  Do not rely on it for anything.  It could cause your
computer to apply for a second mortgage on your home, take your underage
children to R-rated movies, or run around your neighborhood in the middle
of the night ringing doorbells.  You. Have. Been. Warned.