Saravanan666/pypi-org huggingface dataset:
Package: xmlwitch
xmlwitch offers Pythonic XML generation through context generators in a
minimalist implementation with less than 100 lines of code. BSD-licensed.Usageimport xmlwitch
xml = xmlwitch.Builder(version='1.0', encoding='utf-8')
with xml.feed(xmlns='http://www.w3.org/2005/Atom'):
    xml.title('Example Feed')
    xml.updated('2003-12-13T18:30:02Z')
    with xml.author:
        xml.name('John Doe')
    xml.id('urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6')
    with xml.entry:
        xml.title('Atom-Powered Robots Run Amok')
        xml.id('urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a')
        xml.updated('2003-12-13T18:30:02Z')
        xml.summary('Some text.')
print(xml)Setup$ pip install xmlwitch # or
$ easy_install xmlwitch # or
$ cd xmlwitch-0.3; python setup.py installLinksDevelopment repositoryAuthor’s website
Package: xmlx
XMLX - a simple and compact XML parser.XMLX = XML eXtrasTo initialize an element object from a string:>>>xmlx.Element('<html>hello!</html>')<html>..</htmlat0x...>If you prefer dictionaries, simply usexmlx.elemdict(text):>>>xmlx.elemdict('<html>hello!</html>'){'?':{},'@':'hello!','*':'<html>hello!</html>'}?is the element’s attributes,@is its content (JS innerHTML), and*is its text (JS outerHTML).See help(xmlx) for further documentation.
Package: xmm
A command-line package manager for thexonotic-map-repositoryproject.Used with the unofficial Xonotic map repository,xonotic.co, by default.The JSON provides rich metadata about map packages which makes it easier
to discern differences between them.For information about what data is available checkJSON
Structure. ## RequirementsDebian/UbuntuIf you do not already havepipandsetuptoolsfor Python 3:sudo apt install python3-pip python3-setuptoolsInstallationpip3 install xmm --useror for development:git clone https://github.com:z/xonotic-map-manager.git
cd xonotic-map-manager
python3 setup.py developUsageusage: xmm [-h] [--version] [-S [SERVER]] [-T [TARGET]] [-R [REPOSITORY]]
           {search,install,remove,discover,list,show,export,servers,repos,update,hello}
           ...

Xonotic Map Manager is a tool to help manage Xonotic maps

positional arguments:
  {search,install,remove,discover,list,show,export,servers,repos,update,hello}
    search              search for maps based on bsp names
    install             install a map from the repository, or specify a URL.
    remove              remove based on pk3 name
    discover            discover packages in a target directory
    list                list locally installed packages
    show                show details of remote or locally installed packages
    export              export locally managed packages to a file
    servers             subcommands on servers described in servers.json
    repos               subcommands on repos described in sources.json
    update              update sources json
    hello               hello is an example plugin

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit
  -S [SERVER], --server [SERVER]
                        target server as defined in servers.json
  -T [TARGET], --target [TARGET]
                        target directory
  -R [REPOSITORY], --repository [REPOSITORY]
                        repository to use (defaults to all available)DocumentationDocumentation is hosted onreadthedocs.io.ContributingContributions to this project are welcome, please readCONTRIBUTING.md.LicenseCopyright (c) 2016 Tyler Mulligan (z@xnz.me) and contributors.Distributed under the MIT license. See the LICENSE file for more
details.0.8.0 / 2016-12-22AddedMulti-repo supportCreated documentation with sphinx, hosted at readthedocs.ioIntegrated tests and CI with travisarg completion forbashandzshviaargcomplete-Lflag on thexmm showsubcommand to explicitly indicate
showing map details from a locally installed map. Otherwise, the
source_collection cache is used for all information.-Rflag to specify a single repository if using many--versionflagexportcommand supports two more formats, shasums, maplist
(bsps), or repo JSON (#7)serverscommand added with subcommandlistreposcommand added with subcommandlist--highlight,-Hflags become--colorUser-configurable LoggingChangedComplete overhaul of code base exposing a Python APINo longer using pickle, storing data inJSONConfiguration updates, seeUpgrading
Package: xmo
📦 setup.py (for humans)This repo exists to providean example setup.pyfile, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices forsetup.py, as well as some
commented–out nice–to–haves.For example, thissetup.pyprovides a$ python setup.py uploadcommand, which creates auniversal wheel(andsdist) and uploads
your package toPyPiusingTwine, without the need for an annoyingsetup.cfgfile. It also creates/uploads a new git tag, automatically.In short,setup.pyfiles can be daunting to approach, when first
starting out — even Guido has been heard saying, "everyone cargo cults
thems". It's true — so, I want this repo to be the best place to
copy–paste from :)Check out the example!Installationcdyour_project# Download the setup.py file:#  download with wgetwgethttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.py-Osetup.py#  download with curlcurl-Ohttps://raw.githubusercontent.com/navdeep-G/setup.py/master/setup.pyTo DoTests via$ setup.py test(if it's concise).Pull requests are encouraged!More ResourcesWhat is setup.py?on Stack OverflowOfficial Python Packaging User GuideThe Hitchhiker's Guide to PackagingCookiecutter template for a Python packageLicenseThis is free and unencumbered software released into the public domain.Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any means.
Package: xmobar-wttr
xmobar_wttris a command-line program which fetches weather info
fromwttr.inand applies direct formatting to be used by xmobar.
Different from already available plugins, it can easily be configured
to use any kind of combination of numbers, icons, and colors.  It
implements a custom syntax with which a single line in thexmobar_wttr.ymlconfiguration file translates to an xmobar field entry.In thecommandslist of yourxmobarrc, add something along the lines
ofRun Com "xmobar_wttr" ["-c", "~/.config/xmobar/xmobar_wttr.yml"] "wttr" 9000PrerequisitesThis program mainly uses following python3 modulesrequestspyyamlFurthermore, the program uses weather icons fromhttps://github.com/erikflowers/weather-icons.  Install them
directly from the website, using an AUR helper such asyay -S ttf-weather-iconsor by other means.Installpip install xmobar-wttrFor installing from source, clone the repository, and runcd xmobar_wttr
python setup.py install --useror create a virtual environment withpipenv install
pipenv install -e .To activate the virtual environment runpipenv shellor start every command withpipenv run.Usageusage: xmobar_wttr [-h] [-c <path>] [-l <loc>] [-f <format>] [-o <path>] [-s <section>] [-p <par-list> [<par-list> ...]] [-v]

optional arguments:
  -h, --help            show this help message and exit
  -c <path>, --config <path>
			Path to the config file
  -l <loc>, --location <loc>
			Location for which to pull information.
  -f <format>, --format <format>
			Format template for xmobarrc
  -o <path>, --output <path>
			Path to the output file
  -s <section>, --section <section>
			Section in the yaml file to be parsed
  -p <par-list> [<par-list> ...], --pars <par-list> [<par-list> ...]
			Select parameters to be fetched from wttr.in
			excluded parameters are not available in xmobar template format
  -v, --verbose         Run program in verbose modeConfigurationxmobar_wttrworks with both command-line arguments as well as YAML
configuration files (the first takes precedence over the latter).  To
set your desired defaults edit the configuration filexmobar_wttr.ymland place it in either~/.config/xmobar_wttr/xmobar_wttr.yml~/.config/xmobar/xmobar_wttr.yml~/.xmobar_wttr/xmobar_wttr.yml~/.xmobar_wttr.ymlNotationFields are separated by%.Each field should have a parameter entry prefixed by an exclamation
mark!, e.g.!h.Units can be placed using.uFonts can be selected using<N:...>whereNis the xmobar font
index, e.g.<2:weather condition>formats to<fn=2>weather condition</fn>Analogously colors can be used using{#dedede:...}.Notation*Description%[!par]parameter value%g[!par]render parameter only as icon%G[!par]prefix icon to parameter value.uappend units of previous parameterFormat mapResult<2:…><fn=2>…</fn>{#dedede:…}<fc=#dedede>…</fc>\…\x…Example:'%g!x %!t(%!f)<1: >.u {#46d9ff:%G}<1: >!h'could format to something like<fn=6></fn> 3(1)<fn=1> </fn>°C <fc=#46d9ff><fn=6></fn></fc><fn=1> </fn>81and renders in xmobar as
Package: xmod
🌱 Turn any object into a module 🌱Callable modules!  Indexable modules!?Ever wanted to call a module directly, or index it?  Or just sick of seeingfrom foo import fooin your examples?Give your module the awesome power of an object, or maybe just save a
little typing, withxmod.xmodis a tiny library that lets a module to do things that normally
only a class could do - handy for modules that "just do one thing".Example: Make a module callable like a function!# In your_module.py
import xmod

@xmod
def a_function():
    return 'HERE!!'


# Test at the command line
>>> import your_module
>>> your_module()
HERE!!Example: Make a module look like a list!?!# In your_module.py
import xmod

xmod(list(), __name__)

# Test at the command line
>>> import your_module
>>> assert your_module == []
>>> your_module.extend(range(3))
>>> print(your_module)
[0, 1, 2]API Documentation
Package: xmodel
Json Modeling LibraryProvides easy way to map dict to/from Full-Fledged 'JsonModel' object.Documentation📄 Detailed Documentation|🐍 PyPiGetting Started???+ warning "Alpha Software!"
This is pre-release Alpha software, based on another code base and
the needed changes to make a final release version are not yet
completed. Everything is subject to change!poetryinstallxmodelorpipinstallxmodelVery basic example:fromxmodelimportJsonModelclassMyModel(JsonModel):some_attr:strjson_dict_input={'some_attr':'a-value'}obj=MyModel(json_dict_input)assertobj.some_attr=='a-value'json_dict=obj.api.json()assertjson_dict==json_dict_input
Package: xmodels
=======xmodels=======.. image:: https://secure.travis-ci.org/berndca/xmodels.png?branch=master:target: https://secure.travis-ci.org/berndca/xmodels:alt: Build Status.. image:: https://coveralls.io/repos/berndca/xmodels/badge.png:target: https://coveralls.io/r/berndca/xmodels:alt: Coverage**For more information, please see our documentation:** http://xmodels.readthedocs.org/en/latest/Overview========xmodels is a Python library to convert XML documents and Python dictionariesincluding collections.OrderedDict to and from instances of Python datastructures and validate them against a schema.The conversions between XML and Python dict/collections.OrderedDict areperformed by `xmltodict <https://pypi.python.org/pypi/xmltodict>`_.It supports XML specific schema features like ordered sets of element type**<xsd:sequence>**, selection from a set of element type**<xsd:choice>** and namespaces.=======History=======0.1.0 (2014-11-02)==================* First release on PyPI.
Package: xmodem
XMODEM protocol implementationDocumentation available athttp://packages.python.org/xmodem/Python Package Index (PyPI) page is available athttps://pypi.python.org/pypi/xmodemUsageCreate a function to get and put character data (to a serial line for
example):>>> import serial
>>> from xmodem import XMODEM
>>> ser = serial.Serial('/dev/ttyUSB0', timeout=0) # or whatever port you need
>>> def getc(size, timeout=1):
...     return ser.read(size) or None
...
>>> def putc(data, timeout=1):
...     return ser.write(data)  # note that this ignores the timeout
...
>>> modem = XMODEM(getc, putc)Now, to upload a file, use thesendmethod:>>> stream = open('/etc/fstab', 'rb')
>>> modem.send(stream)To download a file, use therecvmethod:>>> stream = open('output', 'wb')
>>> modem.recv(stream)For more information, take a look at thedocumentation.Changes0.4.7:bugfix: stall on some kinds of error inrecv(),PR #56.bugfix: sequence number miscalculation insend(),PR #52.enhancement: callback function added forrecv(),PR #53.bugfix: receiving empty file and stall condition inrecv(),PR #50.bugfix: callback is now called for some kinds of errors
and some CLI fixes,8a798e8b.bugfix: remove DepreactionWarning forlogging.warn(),PR #49.0.4.6:bugfix: Abort send on EOT in startup-sequenceIssue #34.enhancement: Include LICENSE file in the source distribution.0.4.5:bugfix: Remove bogusassert Falsecode inrecv()that resulted inAssertionErrorintroduced in version 0.4.0 commit-id9b03fc20,PR #29.0.4.4:bugfix: Large file transfers insend()were more likely to fail for
small values ofretry: This value should be the maximum failures per
block transfer as documented, but was improperly implemented as the number
of failures allowed for the total duration of the transfer,PR #21.bugfix:send(retry=n)andrecv(retry=n)should retryntimes
as documented, was retryingn - 1.0.4.3:bugfix:putc()callback was called in series, 3 times for each part of
xmodem block header, data, and checksum during block transfer.  Now all
three data blocks are sent by singleputc()call.  This resolves issues
when integrating with microcontrollers or equipment sensitive to timing
issues at stream boundaries,PR #19.0.4.2:bugfix: documentation files missing from the release tarballIssue #16.0.4.1bugfix: re-transmit insend()onNAKor timeout, previously
re-transmissions (wrongly) occurred only on garbage bytes.PR #12.0.4.0enhancement: support for python 3PR #8.bugfix: CRC failures in XMODEM.recv() were not renegotiated correctlyPR #11.
Package: xmodits-py
XMODITS python librarySupported formats:Impulse Tracker .ITExtended Module .XMScream Tracker .S3MAmiga Pro Tracker .MODOpen ModPlug Tracker .MPTM (Identical to Impulse Tracker sample-wise)Unreal Music Container .UMX (Containing the above formats)How to useimportxmoditsfile="~/Downloads/music.xm"folder="~/Music/samples/"# Rip samples to folderxmodits.dump(file,folder)Required ArgumentsArgumentMeaningPathPath to a tracker moduleDestinationDestination folder for ripped samplesAdditional ArgumentsArgumentDefinitionwith_folderCreate a new folder for ripped samples.e.g.When set toTrue,"drums.it"will create"drums_it"in the destination folder and place those samples there.index_paddingSet padding.e.g."01 - kick.wav"-->"1 - kick.wav"index_onlyOnly name samples with a number.e.g."09 - HiHat.wav"-->"09.wav"index_rawPreserves the internal sample indexingupperName samples in upper caselowerName samples in lower casestrictEnabled by default.Will reject files that don't match the following file extensions:[it, xm, s3m, mod, umx, mptm]ExceptionsThey are pretty much self explanitory.ExceptionMeaningSampleExtractionA sample could not be extractedPartialExtractionNot all of the samples could be extractedTotalExtractionNone of the samples could be extractedUnsupportedFormatA module format was recognized, but its type is not supportedInvalidModuleThe file is not a valid tracker moduleEmptyModuleThe tracker module is valid but it has no samplesUnrecognizedFileExtensionThe file extension was not recognizedNoFormatFoundCould not determine a valid formatAdditional ExamplesDump samples without namesimportxmoditstracker="mods/music.xm"folder="samples/"xmodits.dump(tracker,folder,index_only=True)This produces the following output in folder"samples":01.wav
02.wav
03.wav
04.wav
...
15 - vocal.wavDump samples without padding the index:importxmoditstracker="mods/music.xm"folder="samples/"xmodits.dump(tracker,folder,index_padding=0# or 1, both have the same effect)Output:1 - hihat.wav
2 - kick.wav
3 - snare.wav
4 - toms.wav
...
15 - vocal.wavSamples stored in tracker modules can have an arbitary index. If you prefer to use this index, include the parameter:index_raw=TrueIf you're dumping from multiple modules to the same folder, you're guaranteed to have collisions.You should include the parameter:with_folder=Truedevelopment:https://docs.python.org/3/library/venv.htmlCreate a python virtual environment in this directory:python -m venv devactivate virtual environment:source ./dev/bin/activateinstallmaturin (crates.io)or frompipirun test library:maturin developLicenseThe xmodits python library is licensed under the LGPLv3
Package: xmos-ai-tools-beta
XMOS AI ToolsUsageUsing xformerfromxmos_ai_toolsimportxformerasxfxf.convert("source model path","converted model path",params=None)whereparamsis a dictionary of compiler flags and paramters and their values.For example:fromxmos_ai_toolsimportxformerasxfxf.convert("example_int8_model.tflite","xcore_optimised_example_int8_model.tflite",{"mlir-disable-threading":None,"xcore-reduce-memory":None,})To see all available parameters, callfromxmos_ai_toolsimportxformerasxfxf.print_help()This will print all options available to pass to xformer. To see hidden options, runprint_help(show_hidden=True)Using the xcore tflm host interpreterfrom xmos_ai_tools import xcore_tflm_host_interpreter as xtflm

ie = xtflm.XTFLMInterpreter(model_content=xformed_model)
ie.set_input_tensor(0, input_tensor)
ie.invoke()
xformer_outputs = []
for i in range(num_of_outputs):
    xformer_outputs.append(ie.get_output_tensor(i))
Package: xmpdf
xmpdfExtracts email metadata and text body from a PDF containing emails.Installationpip install xmpdfUsagefrom xmpdf import Xmpdf

ems = Xmpdf(pdf_file)
# print summary info about emails in PDF file
print(ems.info())
# process emails
for m in ems.emails:
    process(m)OS DependenciesIf you encounter errors installing xmpdf, please check the OS-level
dependencies of thepdftotextpackage to ensure you have the required libraries installed, as xmpdf utilizes
this package.NotesAssumes an email ends when a new email beginsWorks best with a standard email header (i.e., From:, To:, Sent:, Subject:)The initial development of this package was funded in part by The Mellon Foundation’s “Email Archives: Building Capacity and Community” program.
Package: xmppcat
A unix command line program that works likecatbut sends its output through XMPP.Helpusage: xmppcat [-h] [-V] [-c CONFIG] [-H HOST] [-P PORT] [-u USER] [-p PWD]
               [-q] [-d] [-v]
               recipient [file]

CLI application that works like cat but sends its output through xmpp

positional arguments:
recipient             The XMPP jid to send the message to
file                  The file to read. If not specified it will be read
                      from STDIN

optional arguments:
-h, --help            show this help message and exit
-V, --version         show program's version number and exit
-c CONFIG, --config CONFIG
                      Use a different configuration file
-H HOST, --host HOST  XMPP host (xmppcat will try to auto detect it with DNS
                      or JID parsing)
-P PORT, --port PORT  XMPP port
-u USER, --user USER  XMPP username (JID)
-p PWD, --pass PWD    XMPP password

output arguments:
-q, --quiet           Suppress any non-error output
-d, --debug           Enable debugging output
-v, --verbose         Show additional connection informationsConfiguration fileThe program requires several arguments to be specified in order to be able to connect and authenticate to a XMPP server.
To simplify this process you can save this options in a configuration file, either globally in/etc/xmppcat.confor locally in$HOME/.xmppcat.conf.This is an example of a configuration file for xmppcat:[DEFAULT]
user = myuser@jabber.org/xmppcat
pass = mypassword
host = jabber.org # can be autodetected by dnspython
port = 5222 # also autodetectableExample usageecho "Hello world!" | xmppcat recipient@jabber.org
xmppcat recipient@jabber.org file.txtLICENSECopyright (c) 2012 Massimiliano Torromeoxmppcat is free software released under the terms of the BSD license.See the LICENSE file provided with the source distribution for full details.ContactsMassimiliano Torromeo <massimiliano.torromeo@gmail.com>
Package: xmppony
xmppony is an XMPP library released under GNU GPLv3. It’s a fork of xmpppy
(CVS trunk as of 2008-03-25), which was in turn a fork of jabber.py.xmpppy was written by Alexey Nezhdanov under GNU GPLv2+.http://xmpppy.sourceforge.net/jabber.py was written by Matthew Allum under GNU LGPL.http://jabberpy.sourceforge.net/
Package: xmpppy
Python 2/3 implementation of XMPP (RFC3920, RFC3921).Documentation:http://xmpppy.sf.net/Source Code:https://github.com/xmpppy/xmpppyStatus:AboutThis library has been written to be compliant withRFC3920andRFC3921.InstallationUsingpip, you can install the package with:pip install xmpppy --upgradeUsageAs a libraryRegularly, the module is used as a library, like:jabberid = "foobar@xmpp.domain.tld"
password = "secret"
receiver = "bazqux@xmpp.domain.tld"
message  = "hello world"

jid = xmpp.protocol.JID(jabberid)
connection = xmpp.Client(server=jid.getDomain(), debug=debug)
connection.connect()
connection.auth(user=jid.getNode(), password=password, resource=jid.getResource())
connection.send(xmpp.protocol.Message(to=receiver, body=message))Command line interfaceThe package also installs a command line program calledxmpp-message.
Its synopsis is:xmpp-message --debug \
    --jabberid foobar@xmpp.domain.tld --password secret \
    --receiver bazqux@xmpp.domain.tld --message 'hello world'You can also put your credentials into an~/.xsendfile, like:JID=foobar@xmpp.domain.tld
PASSWORD=secretand then invokexmpp-messageomitting the--jabberidand--passwordoptions, like:xmpp-message --receiver bazqux@xmpp.domain.tld --message 'hello world'DocumentationThe canonical documentation is hosted athttps://xmpppy.github.io/andhttp://xmpppy.sourceforge.net/.For learning about how to use this module, please have a look at these spots
within the code base.Thexmpp-messageprogram, located atxmpp/cli.py, for sending a single XMPP message.The other programs within thedoc/examplesdirectory.The docstrings within the library itself.SupportIf you have any questions about xmpppy usage or you have found a bug or want
to share some ideas - you are welcome to join us on theissue trackeror on thexmpppy-devel mailing list.Other projectshttps://github.com/poezio/slixmpphttps://github.com/horazont/aioxmpphttps://github.com/Jajcus/pyxmpp2https://github.com/fritzy/SleekXMPPhttps://dev.gajim.org/gajim/python-nbxmpphttps://github.com/xmpppy/xmpppy/files/4346179/xmpp_libs.xlsx
Package: xmp-tool
This is a simple command line utility to read/write single value
fields in XMP files using thepython-xmp-toolkit.InstallationA simple install from pip:$pipinstallxmp-toolNote:python-xmp-toolkitdepends onExempiwhich needs to bebuilt for XMP to be installed properly.Use your systems package manager to installExempi, on Mac OS X with
homebrew:$brewinstallexempiOn a Debian based Linux system do:# apt-get install libexempi-devUsage:$xmp-tool-husage:xmp-tool[-h][--valueVALUE][--no-sidecar][field]file[file...]ReadorwriteXMPfieldsinafilepositionalarguments:fieldThefieldtoread/write.IfnofieldspecifiedentireXMPdocumentprinted.fileAfiletoworkonoptionalarguments:-h,--helpshowthishelpmessageandexit--valueVALUEAvaluetowritetothefieldspecified--no-sidecarNeverwritetosidecarfiles.Reading a field:$xmp-toolformattest.jpgtest.jpg:format=image/jpegReading the entire XMP contents of a file:$xmp-tooltest.jpgtest.jpg:None=<?xpacketbegin=""id="W5M0MpCehiHzreSzNTczkc9d"?><x:xmpmetaxmlns:x="adobe:ns:meta/"x:xmptk="Exempi + XMP Core 5.1.2"><rdf:RDFxmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Descriptionrdf:about=""xmlns:dc="http://purl.org/dc/elements/1.1/"><dc:PhysicalMedium>lto01</dc:PhysicalMedium></rdf:Description></rdf:RDF></x:xmpmeta><?xpacketend="w"?>Writing a field:# First try to read the field when there's no data in it$xmp-toolPhysicalMediumtest.jpgtest.jpeg:ERRORREADINGFIELD"PhysicalMedium"# Then try to add the data and then read the field$xmp-toolPhysicalMedium--valuelto01test.jpg$xmp-toolPhysicalMediumtest.jpgtest.jpg:PhysicalMedium=lto01