Saravanan666/pypi-org huggingface dataset:
Package: umsg
_msg, pronounced ‘you-message’, is a module level logging utility intended for
libraries, which works just as well for normal logging scenarios.
The package name replaces the ‘_’ with a ‘u’ to conform with PEP8 standards.InstallationpipinstallumsgUsageClass Logging Made EasyfromumsgimportLoggingMixinclassMyClass(LoggingMixin):def__init__(self):super().__init__(prefix='MyClass')self.log('Logging initiated',level='debug')Basic Module / Script Logging Tooimportloggingimportumsgumsg.add_handler(logging.StreamHandler())umsg.log('Good here')DocumentationDetailed documentation is available onreadthedocs.
Package: u-msgpack-python
u-msgpack-python is a lightweightMessagePackserializer and deserializer module written in pure Python, compatible with both Python 2 and Python 3, as well as CPython and PyPy implementations of Python. u-msgpack-python is fully compliant with the latestMessagePack specification. In particular, it supports the new binary, UTF-8 string, and application-defined ext types. Seehttps://github.com/vsergeev/u-msgpack-pythonfor more information.
Package: umshini
Umshini-ClientThis repository contains the source code used in the client package forUmshini.Getting StartedFor starter scripts and example agents, seeUmshini Starter.View the source code for our house bots inUmshini House-BotsFor full documentation and usage information, seehttps://umshini.ai/documentationInstallation & ConnectionRegister your Bot: First, login and create a bot for your desired environment (e.g. Connect Four) on the account page.Install Umshini: You can install the Umshini client library with the following command:pip install umshiniYou can also install the extra requirements for games to run by passing the class a game is in to the installation of the client library:pip install umshiniWrite your agent: Your agent can be written using any framework or training library.Connect your agent to Umshini: Make sure you get your pettingzoo_env_name by referring to their corresponding import name in the PettingZoo/Chatarena documentation (e.g. for Content Moderation you'll usecontent_moderation). Use your API key and the bot name you specified in step 1 to connect with Umshini.Example UsageThis is an example of how to use umshini to compete in a Connect Four tournament.After bot registration and noting down your API key and bot name, you can follow the following steps:Install Umshinipip install umshiniWrite your AgentThe code below is an agent that plays Connect Four with random (legal) actions.import umshini
import numpy as np

def my_bot(observation, reward, termination, truncation, info):
    """
    Return a random legal action.
    """
    legal_mask = observation["action_mask"]
    legal_actions = legal_mask.nonzero()[0]
    action = np.random.choice(legal_actions)
    return (action, surprise)

# Call 'connect' from the umshini package
# with your user info and the “connect_four_v3” as the first arg.
umshini.connect("connect_four_v3", "Bot-Name", "API_Key", my_bot)And that's it! Running this script during a tournament will allow your bot to compete! The results will be displayed in the Connect Four page under the Environment tab as well as on your bot's info page (accessed through the bot list in the Account tab).
Package: umtools
umtoolsUnofficialUnified Model (UM) toolsLicenseumtoolsis licensed under the terms of the MIT license. See the file
“LICENSE” for information on the history of this software, terms & conditions
for usage, and a DISCLAIMER OF ALL WARRANTIES.All trademarks referenced herein are property of their respective holders.Copyright (c) 2015–, Denis Sergeev, University of East Anglia
Package: umysqldb
A MySQLdb compatible wrapper aroundultramysql.Usage>>> import umysqldb
>>> umysqldb.install_as_MySQLdb()
>>> import MySQLdb
>>> MySQLdb is umysqldb
True
>>> conn = MySQLdb.connect(host='localhost')
>>> curs = conn.cursor()
>>> curs.execute("select 1")
1
>>> curs.fetchone()
(1L,)
>>> conn.close()
Package: un1qnx-api
Un1qnx APISimple Python API client forun1qnx.ConfigurationNameTypeDescriptionUN1QNX_BASE_URLstrThe base URL to be used in the remote API calls.UN1QNX_AUTH_URLstrThe authentication URL to be used in the authentication API call.LicenseUn1qnx API is currently licensed under theApache License, Version 2.0.Build Automation
Package: unach-photo
Aplicación Django cliente para conectar con repositorios de fotografías de personas relacionadas a la unach.DocumentationThe full documentation is athttps://unach-photo.readthedocs.io.QuickstartInstall unach_photo:pip install unach-photoAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'unach_photo.apps.UnachPhotoConfig',...)Add unach_photo’s URL patterns:fromunach_photoimporturlsasunach_photo_urlsurlpatterns=[...url(r'^',include(unach_photo_urls)),...]FeaturesTODORunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.1.0 (2017-05-15)First release on PyPI.
Package: unach-photo-server
Aplicación web encargada de conectar con los repositorios de fotografías dispersos en la unach y generar servicios web para consultar por las fotografías de usuarios.DocumentationThe full documentation is athttps://unach-photo-server.readthedocs.io.QuickstartInstall unach_photo_server:pip install unach-photo-serverAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'unach_photo_server.apps.UnachPhotoServerConfig',...)Add unach_photo_server’s URL patterns:fromunach_photo_serverimporturlsasunach_photo_server_urlsurlpatterns=[...url(r'^',include(unach_photo_server_urls)),...]FeaturesTODORunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.1.0 (2017-05-12)First release on PyPI.
Package: una-django-cassandra-engine
# Django Cassandra Engine - the Cassandra backend for Django #All tools you need to start your journey with Apache Cassandra and Django Framework![![Latest version](https://img.shields.io/pypi/v/django-cassandra-engine.svg "Latest version")](https://pypi.python.org/pypi/django-cassandra-engine/)[![Downloads](https://img.shields.io/pypi/dm/django-cassandra-engine.svg "Downloads")](https://pypi.python.org/pypi/django-cassandra-engine/)[![CI](https://api.travis-ci.org/r4fek/django-cassandra-engine.svg?branch=master "CI")](https://travis-ci.org/r4fek/django-cassandra-engine)[![Code climate](https://codeclimate.com/github/r4fek/django-cassandra-engine/badges/gpa.svg "Code climate")](https://codeclimate.com/github/r4fek/django-cassandra-engine)## Features ##* integration with latest `python-driver` from DataStax* working `flush`, `migrate`, `sync_cassandra`, `inspectdb` and`dbshell` commands* support for creating/destroying test database* accepts all `Cqlengine` and `cassandra.cluster.Cluster` connection options* automatic connection/disconnection handling* works well along with relational databases (as secondary DB)* storing sessions in Cassandra (NEW!)## Plans (TODO) ##* User model stored in Cassandra (auth module)* Admin panel for Cassandra models* Forms## Installation ##Recommended installation:pip install django-cassandra-engine## Basic Usage ##1. Add `django_cassandra_engine` to `INSTALLED_APPS` in your `settings.py` file:INSTALLED_APPS = ('django_cassandra_engine',) + INSTALLED_APPS2. Change `DATABASES` setting:DATABASES = {'default': {'ENGINE': 'django_cassandra_engine','NAME': 'db','TEST_NAME': 'test_db','HOST': 'db1.example.com,db2.example.com','OPTIONS': {'replication': {'strategy_class': 'SimpleStrategy','replication_factor': 1}}}}3. Define some model:# myapp/models.pyimport uuidfrom cassandra.cqlengine import columnsfrom cassandra.cqlengine.models import Modelclass ExampleModel(Model):example_id    = columns.UUID(primary_key=True, default=uuid.uuid4)example_type  = columns.Integer(index=True)created_at    = columns.DateTime()description   = columns.Text(required=False)4. Run `./manage.py sync_cassandra`5. Done!## Documentation ##The documentation can be found online [here](http://r4fek.github.io/django-cassandra-engine/).## License ##Copyright (c) 2014-2016, [Rafał Furmański](https://rafal-furmanski.com).All rights reserved. Licensed under BSD 2-Clause License.
Package: unagi
Unagi (ウナギ)Besides being the most delicious fish in the world and one of thesignature Japanese dishes,unagican also help you navigate through thepublicorinternal data releaseof the Hyper Suprime-Cam (HSC) Subaru Strategic Program (SSP; also known as the HSC survey) -- an ambitious multi-band deeep photometric survey using the awesome prime-focus camera on the 8.2m Subaru telescope.Also,unagidoes not stand for anything because forced acronym is for psychopath.If you want to learn more about the real unagi, you can check outthis video on Youtube.  And here is a vlog about a famous unagi place I have tried:Obana 尾花.  It is pretty close to downtown Tokyo and few statioins away from Kavli-IPMU.If you want to learn more about this amazing food, just tryimport unagi; unagi.unagi()in yourJupyterNotebook.Recent Updates06/03/2019:Support for HSC PDR2 is added(need more tests)The schema of all tables in thePDR2_DUDandPDR2_WIDEreruns are available inunagi/data/folder as a.jsonfile.06/04/2019:New features: filters.py and camera.pyHelp you get important information about HSC camera (e.g. CCD QE, primary mirror reflectivity) and filters (e.g. transmission curves, absolute AB magnitude of Sun in each filter etc.).06/06/2019:New features: add hsc_check_coverage() methodto check if a coordinate is covered by one HSCPatch. Seeherefor example.ApplicationsConfig the access to HSC database and get basic survey informationAccess to information about HSC filters and cameraGenerate cutout coadded or warped HSC images.Generate 3-color RGB picture of a small HSC region.Query and download HSC PSF model.Dealing with the mask planes of HSC imagesBasic SQL search of HSC databaseUsing HSC sky object to characterize residual backgroundTODO ListDirectly download data products from HSC pipeline (e.g., coaddedPatchor source catalogs)Access to HSC weak-lensing shape catalogAccess to HSC random catalogReproduce theCModelresultInstallationpython setup.py installorpython setup.py developwill do the job.Right now,unagionly supportsPython>=3.  If you are still usingPython 2, you should make the switch.unagionly depends onnumpy,scipy,astropy, andmatplotlib. All can be installed usingpiporconda.DocumentsIpromisehope that documents will be available soon...but right now, please take a look at the Jupyter Notebookdemosfor each functionality.AcknowledgementThanks the HSC collaboration for making this amazing survey happen and make these beautiful data available.  Also thank the good people at NAOJ who work tirelessly to prepare the data release.Reporting bugsIf you notice a bug inunagi(and you will~), please file an detailed issue at:https://github.com/dr-guangtou/unagi/issuesRequesting featuresIf you would like to request a new feature, do the same thing.LicenseCopyright 2019 Song Huang and contributors.unagiis free software made available under the MIT License. For details see
the LICENSE file.
Package: uname2
uname2Print certain system information. With no OPTION, same as -s.Installpipinstalluname2UsagePSE:\code\uname2>uname2--helpUsage:uname2[OPTIONS]Printcertainsysteminformation.WithnoOPTION,sameas-s.Options:-a,--allprintallinformation-s,--kernel-nameprintthekernelname-n,--nodenameprintthenetworknodehostname-r,--kernel-releaseprintthekernelrelease-v,--kernel-versionprintthekernelversion-m,--machineprintthemachinehardwarename-p,--processorprintthehardwareplatformor"unknown"--helpShowthismessageandexit.PSE:\code\uname2>ExamplePS E:\code\uname2> uname2
    Windows
    PS E:\code\uname2> uname2 -a
    Windows DESKTOP-OR9GS4G 10 10.0.16299 AMD64 Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
    PS E:\code\uname2> uname2 -snrvmp
    Windows DESKTOP-OR9GS4G 10 10.0.16299 AMD64 Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
    PS E:\code\uname2>Releases0.1.3 2019/12/10Fix document.0.1.1 2019/08/08Fix package strcture and remove src folder.0.1.0 2019/04/04First release.
Package: unames
cnamesGenerate username from the full name providedusage>>>importunames>>>u=list()>>>foriinrange(50):...u.append(unames.gen_username("Mayank Jha"))...>>>print({elforelinu}){'Mayank.Jha','Jha.Mayank','itz.Mayank','Mayank_Jha','_.MayankxJha._','iam.Mayank','May466','itz_Mayank','__Mayank.Jha__','May889','iam_Mayank','May870','Mayank._.Jha','Mayank.Jha__','M4y4nk_Jh4'}
Package: unanimous
Unanimous - A pyspelling plugin for common non-wordsExtension to make running pyspelling in CI easier. Maintains a common word exception list of technical terms so that every project does not need to exclude words like PyPi and GitHub etc..More details can be found in theOnline Documentation.InstallationYou can install unanimous forPythonviapipfromPyPI.$ pip install unanimousNote: if using Python 3.4 the latest version of lxml only supports python 3.5 and above so install lxml 4.3.4Prerequisites:pyspellingdatasetrequestsclickdefusedxmlDownload from PyPI.orghttps://pypi.org/project/unanimous/ContributingContributions are very welcome, consider using thefile an issueto discuss the work before beginning, but if you already have a Pull Request
ready then this is no problem, please submit it and it will be very gratefully
considered. TheContribution Guidelinesoutlines the unanimous commitment to ensuring all
contributions receive appropriate recognition.LicenseDistributed under the terms of theGPLv3license, "unanimous" is free and open source softwareIssuesIf you encounter any problems, pleasefile an issuealong with a detailed description.Additional Documentation:Online DocumentationNews.Template Updates.Code of Conduct.Contribution Guidelines.
Package: unary-coding
Didactical python package implementing coding and decoding for unary and inverted unary.How do I install this package?As usual, just download it using pip:pipinstallunary_codingTests CoverageSince some software handling coverages sometime get slightly different results, here’s three of them:Usage examplefromunary_codingimportunary,inverted_unaryunary(3)# 1110inverted_unary(3)# 0001
Package: unasync
unasyncWelcome tounasync, a project that can transform your asynchronous code into synchronous code.Why are we doing it?-urllib3/urllib3#1335Installationpip install unasyncUsageTo use the unasync project you need to install the package and then create a_asyncfolder where you will place the asynchronous code that you want to transform into synchronous code.And then in yoursetup.pyplace the following code.importunasyncsetuptools.setup(...cmdclass={'build_py':unasync.cmdclass_build_py()},...)And when you will build your package you will get your synchronous code in_syncfolder.If you’d like to customize where certain rules are applied you can pass
customizedunasync.Ruleinstances tounasync.cmdclass_build_py()importunasyncsetuptools.setup(...cmdclass={'build_py':unasync.cmdclass_build_py(rules=[# This rule transforms files within 'ahip' -> 'hip'# instead of the default '_async' -> '_sync'.unasync.Rule("/ahip/","/hip/"),# This rule's 'fromdir' is more specific so will take precedent# over the above rule if the path is within /ahip/tests/...# This rule adds an additional token replacement over the default replacements.unasync.Rule("/ahip/tests/","/hip/tests/",additional_replacements={"ahip":"hip"}),])},...)Documentationhttps://unasync.readthedocs.io/en/latest/License: Your choice of MIT or Apache License 2.0
Package: unasync-cli
CLI for unasyncCommand line interface for unasyncGetting startedInstallRun the following command to install the package withpip:pipinstallunasync-cliOr withconda:condainstallunasync-cliOr withpoetry:poetryaddunasync-cli--devOr any other package manager you prefer.UsageFor usage information, run the following command:unasync--helpUsage: unasync [OPTIONS] PATHS...

Arguments:
  PATHS...  The folders where it will check for folders with the name _async
            to generate its equivalent _sync.  [required]

Options:
  --install-completion [bash|zsh|fish|powershell|pwsh]
                                  Install completion for the specified shell.
  --show-completion [bash|zsh|fish|powershell|pwsh]
                                  Show completion for the specified shell, to
                                  copy it or customize the installation.
  --help                          Show this message and exit.Contributors ✨Thanks goes to these wonderful people (emoji key):Leynier Gutiérrez González🚧💻🚇This project follows theall-contributorsspecification. Contributions of any kind welcome!
Package: unavailable-object
Unavailable ObjectA placeholder object for optional dependencies.Usagefromunavailable_objectimportUnavailableObjecttry:importoptional_moduleexceptImportError:optional_module=UnavailableObject("optional_module")Type CheckingTo not disturb the type checker, the alternative definition ofoptional_objectshould be guarded byif not TYPE_CHECKINGand type annotations put in quotes:fromtypingimportTYPE_CHECKINGfromunavailable_objectimportUnavailableObjecttry:importoptional_moduleexceptImportError:ifnotTYPE_CHECKING:optional_module=UnavailableObject("optional_module")deffoo(arg:"optional_module.SomeType")->None:pass
Package: unbabel-smaug
SMAUG: Sentence-level Multilingual AUGmentationsmaugis a package for multilingual data augmentation. It offers transformations focused on changing specific aspects of sentences, such as Named Entities, Numbers, etc.Getting StartedTo start usingsmaug, you can install it withpip:pip install unbabel-smaugTo run a simple pipeline with all transforms and default validations, first create the followingyamlfile:pipeline:-cmd:io-read-linespath:<path to input file with single sentence per line>lang:<two letter language code for the input sentences>-cmd:transf-swp-ne-cmd:transf-swp-num-cmd:transf-swp-poisson-span-cmd:transf-neg-cmd:transf-ins-text-cmd:transf-del-punct-span-cmd:io-write-jsonpath:<path to output file># Remove this line for no seedseed:<seed for the pipeline>The run the following command:augment--cfg<path_to_config_file>UsageThesmaugpackage can be used as a command line interface (CLI) or by directly importing and calling the package Python API. To usesmaug, first install it by following theseinstructions.Command Line InterfaceThe CLI offers a way to read, transform, validate and write perturbed sentences to files. For more information, see thefull details.Configuration FileThe easiest way to runsmaugis through a configuration file (see thefull specification) that specifies and entire pipeline (as shown in theGetting Startedsection), using the following command:augment--cfg<path_to_config_file>Single transformAs an alternative, you can use the command line to directly specify the pipeline to apply. To apply a single transform to a set of sentences, execute the following command:augmentio-read-lines-p<input_file>-l<input_lang_code><transf_name>io-write-json-p<output_file><transf_name>is the name of the transform to apply (see thissectionfor a list of available transforms).<input_file>is a text file with one sentence per line.<input_lang_code>is a two character language code for the input sentences.<output_file>is a json file to be created with the transformed sentences.Multiple TransformsTo apply multiple transforms, just specify them in arbitrary order between the read and write operations:augmentio-read-lines-p<input_file>-l<input_lang_code><transf_name_1><transf_name_2>...io-write-json-p<output_file>Multiple InputsTo read from multiple input files, also specify them in arbitrary order:augmentio-read-lines-p<input_file_1>-l<input_lang_code_1>read-lines-p<input_file_2>-l<input_lang_code_2>...<transf_name_1><transf_name_2>...io-write-json-p<output_file>You can further have multiple languages in a given file by having each line with the structure <lang code>,<sentence> and using the following command:augmentio-read-csv-p<input_file><transf_name_1><transf_name_2>...io-write-json-p<output_file>DevelopingTo develop this package, execute the following steps:Install thepoetrytool for dependency management.Clone this git repository and install the project.git clone https://github.com/Unbabel/smaug.git
cd smaug
poetry install
Package: unbapi
unb-api-pyunb-api-py allows python developers to use the UnbelievaBoat Discord bot API in their own projects! Here's how to get started:(documentation is coming not-so-soon)Getting StartedInstall the librarypip install unbapiCreate an UnbelievaBoat Application athttps://unbelievaboat.com/applicationsand copy the token (keep this secret)Import the library, and create anApplicationobject. Example:importunbapiunbapp=unb.Application("put the token here from step 2.")You've now created anApplicationobject. This allows you to get or fetch a guild object. Here's how to get a guild object:guild=unbapp.get_guild(guild-id)This will createPartialGuildobject. This allows you to do every action in the guild but doesn't have much information about the app. If you need guild information, such as the name, icon, currency symbol, etc then you should useunbapp.fetch_guildwhich gives aGuildobject. However, fetching information is slower then 'getting' it.APartialGuild, orGuildobject allows you to do things inside of a guild (as long as you have permission), such as: fetching a user's balance (and changing it), getting store items, adding/removing items from user's inventories, and more. Here's how to do each:ExamplesCheck the bot's permissions in a guildpermissions=guild.fetch_permissions()print(permissions.economy,permissions.items)Getting a user's balanceuser=guild.fetch_user(user-id)print(user.cash,user.bank,user.total,user.rank)Updating a user's balanceThis example will add 400 cash to their balance, and remove -100 bank from their bank balance.user.update_balance(cash=400,bank=-100)Setting a user's balanceThis example set the users cash to 1000, and their bank balance to infinityimportmathuser.set_balance(cash=1000,bank=math.inf)Getting a list of all the items in a user's inventoryforiteminuser.fetch_inventory():print(item.name,item.id,item.quantity)Check how much of an item a user hasuser.fetch_item_quantity(item-id)(check out getting an item ID below)Add item to user inventoryuser.add_item(item-id,quantity=1)(check out getting an item ID below)Remove item to user inventoryuser.remove_item(item-id,quantity=1)(check out getting an item ID below)Get guild leaderboardforuserinuser.fetch_leaderboard():print(user.id,user.rank,user.total)Get guild store itemsforiteminuser.fetch_items():print(item.name,item.id,item.price)Delete guild itemitem.delete()Editing guild items will come some time in the future.ExceptionsThe library may raise these exceptions:unbapiExceptionBase exception for the libraryNotFoundThe resource couldn't be foundInvalidTokenThe provided token isn't validForbiddenThe bot can't access thisTypeErrorFor a function that acceptsObjectWithIdAttribute, the provided object doesn't have anidattribute.Getting an Item IdUse the/item infocommand from unbelivaboatClick the blue command text after ' used'Copy the long string of numbers in the popup. Example: