Saravanan666/pypi-org huggingface dataset:
Package: urbantrips
READMEUrbanTrips es una biblioteca de código abierto que toma información de un sistema de pago con tarjeta inteligente de transporte público, infiere destinos de las etapas, construye cadenas de viaje para cada usuario y produce matrices de origen-destino y otros indicadores operativos. El principal objetivo de la librería es producir insumos útiles para la gestión del transporte público a partir de requerimientos mínimos de información y pre-procesamiento. Con sólo una tabla geolocalizada de transacciones proveniente de un sistema de pago electrónico, se podrán generar resultados, que serán más precisos cuanta más información adicional se incorpore al proceso a través de los archivos opcionales. El proceso elabora las matrices, los indicadores y construye una serie de gráficos y mapas útiles para la planificación y fiscalización del transporte público.Para mayor información de la librería, instalación, configuración y uso puede leerse laDocumentaciónPara una discusión metodológica de cómo se imputan destinos y se construye la matriz de origen y destino se puede consultar este.AgradecimientosQueremos agradecer la colaboración de los gobiernos de Ciudad de Buenos Aires, Córdoba, Mendoza y Bariloche que proveyeron datos y participaron de valiosas conversaciones para mejorar esta librería.LicenciaCopyright© 2023. Banco Interamericano de Desarrollo ("BID"). Uso autorizado.AM-331-A3AutoresFelipe González (@alephcero)
Sebastián Anapolsky(@sanapolsky)
Package: urban.vocabulary
InstallationInstall urban.vocabulary by adding it to your buildout:[buildout]

...

eggs =
    urban.vocabularyand then runningbin/buildoutContributeIssue Tracker:https://github.com/IMIO/urban.vocabulary/issuesSource Code:https://github.com/IMIO/urban.vocabularyLicenseThe project is licensed under the GPLv2.ContributorsMartin Peeters [mpeeters]Changelog1.0a2 (2023-04-04)Avoid an error during install whenportal_urbandoes not exist yet
[mpeeters]Move base url and polygon in external cfg files rather than plone registry.
[sdelcourt]1.0a1 (2018-06-04)Initial release.
[mpeeters]
Package: urbdict
urbdictA library forurbandictionary.comInstall:pipinstallurbdictUsage:Command line:$urbdictxterm
xtermGodlycreature,omnipotent,guruineverywayimaginable.Ex:IwishiwasanxtermbyAnonymousAugust26,2003https://www.urbandictionary.com:443/define.php?term=xtermPython:$python3
Python3.9.12(main,Jun12022,06:36:29)[Clang12.0.0]::Anaconda,Inc.ondarwin
Type"help","copyright","credits"or"license"formoreinformation.
>>>importurbdict
>>>x=urbdict.define("xterm")>>>print(x){'word':'xterm','definition':'Godly creature, omnipotent, guru in every way imaginable.','example':'I wish i was an xterm','contributor':'by Anonymous August 26, 2003','url':'https://www.urbandictionary.com:443/define.php?term=xterm'}>>>print(x["definition"])Godlycreature,omnipotent,guruineverywayimaginable.
>>>
Package: urbitob
urbit-pobA python implementation ofurbit-obInstallRunpip install urbitobModule UseThe library exposes two families of functions:patp / patp_to_num / patp_to_hex / hex_to_patp / is_valid_patppatq / patq_to_num / patq_to_hex / hex_to_patq / is_valid_patqAs well as:clan, for determining the ship class of a@pvaluesein, for determining the parent of a@pvalueeq_patq, for comparing@qvalues for equalityis_valid_pat, for a faster/weaker check of@por@q-ness that only
validates syllables (and not proper dash formatting)Example Usage>>>importurbitob>>>urbitob.patp(314159)'~batdyr-topmun'>>>urbitob.patp_to_num("~faster-pollen")2077885931>>>urbitob.hex_to_patq("EFFACED")'~wisfes-batsed'>>>urbitob.sein("~hashes-happen")'~hattug'>>>urbitob.clan("~marzod")'star'You could use it to generate list of Planets from a given Star:>>>v=urbitob.patq_to_hex("~sordem")>>>planets=list(urbitob.hex_to_patp(hex(i)[2:]+v)foriinrange(1,0xffff))>>>planets[:10]['~rigteg-havtuc','~lonnub-navhet','~risheb-difryc','~sigren-daldux','~rammel-malmyl','~rapmes-ralres','~boswex-ravret','~sapper-loclut','~talmep-sibsug','~dalbur-todser']TestingA simplepython -m unittestwill run the test suite.
Package: urb-libpythonpro
libpythonproMÃ³dulo para exemplificar construÃ§Ã£o de projetos Python no curso PyTools
Nesse curso Ã© ensinado como contribuir co projeto de cÃ³digo aberto
Suportada versÃ£o 3 de Python.Para instalar:python3 -m venv .venvsource .venv/bin/activatepip install -r requirements-dev.txt```Pra conferir qualidade de cÃ³digo:```consoleflake8TÃ³picos a serem abordados:GitVitualenvPip
Package: urcalc
cis a simple calculator in terminal usingUrwid, created solely for big
buttons to click with mouse button, not meant to be having complex arithmetic
operations, just basic+-*/.This project’s name is “c,” however, in order to register onPyPI, it uses
“urcalc” as the PyPI package name.cis also the command to invoke the
calculator.ContentsInstallationDependenciesControlsLinksCopyrightInstallationYou can install viapip:$pipinstallc$cDependenciesPython 3UrwidControlsBesideLMB(Left Mouse Button) to press button on screen, there are also
keyboard controls as listed below:keyactionEnterorSpacepress focused buttonarrow keysnavigate through buttons0to9enter the digitBackspaceremove lowest digitNchange sign.begin fractional part=get answerC,EscapeclearQquitLinksBitbucketPyPICopyrightThis project is licensed under the MIT License, seeCOPYING.
Package: urchintai-client
urchintai-client PackageThis is a simple client for UR Chintai API (UR都市機構) written in Python.Please see my blog post at the link below for more information regarding the API.https://duongnt.com/urchintai-apiInstallYou can installurchintai-clientusing pip, just run the following command in the command line.pip install urchintai-clientUsageNote: all calls to remote API are executed asynchronously.Create client objectfrom urchintai_client.request_sender import RequestSender

# Create your aiohttp session object, we will call it sess
sender = RequestSender(sess) # this object is used to send request to and receive response from API
client = UrClient(sender)You can choose to create and use your own aiohttp session, or you can use this helper class to create and manager session.from urchintai_client.session_manager import SessionManager

sess = SessionManager.GetSession()In this case you can call the following method to close the session and release resource.await SessionManager.CloseSession()Check if a property has vacant room(s)Callis_property_vacantmethod and pass the URL of the property you want to check.url = 'https://www.ur-net.go.jp/chintai/kanto/kanagawa/40_2460.html'
is_vacant = await client.is_property_vacant(url)If you know the property code, you can use it to check for vacancy.property_code = {
    'store_code': '40',
    'house_code': '246',
    'type': '0'
}
is_vacant = await client.is_property_vacant(property_code)Find the name of a propertyCallget_property_namemethod and pass the URL of the property.url = 'https://www.ur-net.go.jp/chintai/kanto/kanagawa/40_2460.html'
name = await client.get_property_name(url)Check if a room is vacantCallis_room_vacantmethod and pass the URL of the room you want to check.url = 'https://www.ur-net.go.jp/chintai/kanto/kanagawa/40_2460_room.html?JKSS=000020654'
is_vacant = await client.is_room_vacant(url)If you know the room code, you can use it to check for vacancy.room_code = {
    'store_code': '40',
    'house_code': '246',
    'type': '0',
    'room_id': '000020654'
}
is_vacant = await client.is_room_vacant(room_code)Run test from terminalBelow is how we runget_property_namefrom python terminal. It should work as is as long as all dependencies are installed.import asyncio

from urchintai_client.session_manager import SessionManager
from urchintai_client.request_sender import RequestSender
from urchintai_client.ur_client import UrClient

sender = RequestSender(SessionManager.GetSession())
client = UrClient(sender)

url = 'https://www.ur-net.go.jp/chintai/kanto/kanagawa/40_2460.html'
loop = asyncio.get_event_loop()
name = loop.run_until_complete(client.get_property_name(url))
print(f'Property name: {name}')

loop.run_until_complete(SessionManager.CloseSession()) # Don't forgot to close the sessionThis should print the following message to console.Property name: 西久保町公園ハイツ
Package: urcollectionmanager
A module to support reading player purchase history data and
storing it in a database.Puchases History Use:ImportapifromurcollectionmanagerCreate a request.Session and pass it, along with
your credentials tosession_connect_to_urPass that same session (now authenticated) toget_purchase_historyalong with the number of
pages to scrape.Pass the result toconvert_purchase_historyOptionally: Pass result to your own HTML parser.You now have a list of Purchase objects that contain
all relevant information available from the purchase
history page.Missions Use:ImportapifromurcollectionmanagerCreate a request.Session and pass it, along with
your credentials tosession_connect_to_urPass that same session (now authenticated) toget_missions_listalong with the mission category
to find. An empty string returns everything.Pass the result toconvert_missionsOptionally: Pass result to your own HTML parser.You now have a list of Mission objects that contain
all relevent information available from the missions
page.Database Use:Runconnect_and_initialize_databaseif you have a
particular database location you want to connect to.
By default this will connect todata/collection.sqlitePass a list of Purchase objects towrite_history_to_databaseIf usingconvert_purchase_history, you will need to flatten
the list of listsOnce the database has Purchase objects in it, you can
runget_history_from_databaseto retrieve them.Similarly, you can runwrite_missions_to_databaseto write
Mission objects andget_missions_from_databaseto read mission
Mission objects from the same database as Purchases.DevHow To Use Tools:PoetryTo run the project (preferably configure venv first)>>> poetry installTo configure your venv>>> python -m venv /path/to/new/virtual/environment
>>> poetry env infoIfenv infodoes not match your path, try manually runningScripts/activateinside that environmentTo add a dependency (add a -D if it’s only for development)>>> poetry add <dependency>Commitizen>>> git add
>>> cz cMore options can be found under options underCommitizenPreCommitUpdate .pre-commit-config.yaml, then run>>> pre-commit install
>>> pre-commit run --all-filesMore hook plugins can be found atPreCommitHooksTODO:UseUR-APIto collect player data.UR-API-ExampleDefault to file output (excel or some form of that)Testing (pytest,Coverage-py)Documentation (Sphinx)Not Required at this Time:BlackiSort
Package: urconf
Declarative configuration library for Uptime Roboturconfis a Python library for Uptime Robot <https://uptimerobot.com/>
API. It expects definition of all your contacts and monitors, and then issues
API calls required to configure your Uptime Robot accordingly.UsageInstall urconf using pip:pip install urconfWrite your monitoring configuration as a Python script:importloggingimporturconf# urconf logs all operations that change configuration at the INFO level.# Use DEBUG to see API call contents.logging.basicConfig(level=logging.INFO)config=urconf.UptimeRobot("api-key")# dry_run=True enables dry mode# Define contactsemail=config.email_contact("me@example.com")boxcar=config.boxcar_contact("boxcar-api-key","my boxcar")# Define monitorsssh=config.port_monitor("ssh on server1","server1.example.com",22)web=config.keyword_monitor("my site","https://example.com/","welcome to example.com!")# More complex example with HTTP auth and non-standard monitoring intervalbackend=config.keyword_monitor("my backend","https://admin.example.com","Cannot connect to database",should_exist=False,http_username="admin",http_password="password",interval=20)# Associate contacts with monitorsformonitorin(ssh,web,backend):monitor.add_contacts(email,boxcar)# Sync configuration to Uptime Robotconfig.sync()Run the script to sync configuration.FunctionalityCurrently implemented:SMS, email, Twitter DM, Boxcar, Webhook, Pushbullet and Pushover contacts;keyword and port monitors.Pull requests extending supported types of contacts or monitors are very
welcome.If you need to use contact types which are not supported by thenewAlertContactmethod of Uptime Robot API (for example, HipChat or Slack),
you can create the contact manually in the web UI, define it in your
configuration file by calling theUptimeRobot.contact()method directly and
then use that contact inadd_contactsnormally:config=urconf.UptimeRobot("api-key")hipchat=config.contact(type=10,value="123",friendly_name="Hipchat")config.port_monitor("ssh1","ssh1.example.com",22).add_contacts(hipchat)Development notesrefer to API documentation <https://uptimerobot.com/api> while implementing
additional functionality;runtoxto run the tests in Python 2.7 and 3.4 environments;runmake htmlindocs/to build documentation in HTML. It can be
viewed indocs/_build/html/afterwards.Licenseurconfis licensed under the MIT license.
Package: urd
Urd is a scheduler for Django projects. Some features:schedule < 1m time slotssingle concurrent execution[1]fast enable/disable[2]simple deploymentno extra dependencies beyond Django[1]If tasks take longer to execute than the time to the next execution slot, you get a warning on the next execution. But not simultaneous execution or wild buildup of queues. There is no queue.[2]It’s vitally important to be able to stop a runaway process. With theheartbeat, and with the worker reading the database state before executing, it’s easy and fast to disable a job.SetupInstall urdpip install urdAddurdtoINSTALLED_APPSRunmanage.py migrateStart the scheduler withmanage.py monitorUsageDefine atasks.pymodule in the app that should have tasks.Create a function like this:@schedulable_taskdefmy_task(heartbeat):forfooinbar:heartbeat()do_some_task()Callingheartbeat()regularly is important to make the task cancellable in a timely manner.Now define a task in the iommi admin. It will be enabled pretty much as soon as you save.AdministrationUrd ships with integration for theiommiadmin.Why not cron/celery/django-qCron didn’t work for me because I need to execute a function more often than once a minuteCron also doesn’t work for me because if you do once per minute, and the task takes two minutes, you get TWO executing processes of that task for a while. This can be disastrous for a few reasons, and can cause things to spiral out of control.Celery/django-q are task queues, not schedulers. They have scheduler components, but they don’t have a way to ensure only one process at a time runs a specific task.Django-q doesn’t allow schedules that execute more often than once per minuteDjango-q caused me a lot of problems where the schedule seemed to put future items in the queue, and I couldn’t make it stop trying to execute them.What does urd mean?Urd (or Urðr, or Wyrd) is one of the Norns, the goddesses who weave the destiny of gods and humans.
Package: urdfenvs
Generic URDF robotsIn this package, generic urdf robots and a panda gym environment are
available. The goal is to make this environment as easy as possible to
deploy. Although, we used the OpenAI-Gym framing, these environments are
not necessarly restricted to Reinforcement-Learning but rather to local
motion planning in general.Point RobotPoint Robot with Keyboard InputNon-Holonomic RobotTiago RobotTiago Robot with Keyboard InputPanda RobotAlbert RobotGetting startedThis is the guide to quickle get going with urdf gym environments.Pre-requisitesPython >=3.8pip3gitInstallation from pypiThe package is uploaded to pypi so you can install it usingpip3 install urdfenvsInstallation from sourceYou first have to download the repositorygit clone git@github.com:maxspahn/gym_envs_urdf.gitThen, you can install the package using pip as:pip3 install .The code can be installed in editible mode usingpip3 install -e .Note that we recommend using poetry in this case.Optional: Installation with poetryIf you want to usepoetry, you have
to install it first. See their webpage for instructionsdocs. Once poetry is installed, you
can install the virtual environment with the following commands. Note
that during the first installationpoetry updatetakes up to 300 secs.poetry installThe virtual environment is entered bypoetry shellInside the virtual environment you can access all the examples.Installing dependenciesDependencies should be installed through pip or poetry, see below.Using pip, you can usepip3 install '.[options]'Using poetrypoetry install --with <options>Options arekeyboard.ExamplesYou find several python scripts inexamples/.
You can test those examples using the following (if you use poetry, make
sure to enter the virtual environment first withpoetry shell)python3 pointRobot.pyReplace pointRobot.py with the name of the script you want to run.
Package: urdu2romanfromnlpd
The core purpose of creating this library is Roman to Urdu Transliteration using word list. The table for mapping is discussed in:Ahmed, T. (2009). Roman to Urdu Transliteration using word list. Conference of Language and Technology, submittedFurther help was taken from following paper:Tafseer Ahmed, Roman to Urdu Transliteration using word listChange Log0.0.1 (25/08/2022)First Release
Package: urdu-digit
#Urdu DigitA package to help convert digits from their English equivalent to their Urdu equivalent.#DetailsSimply, this package relies on unicode conversion between the 2 languages.#Usageimport urdu_digit as ud# to just GET the conversion of, for e.g: 2;ud.get(2)# OUTPPUT: (2, '۲', '0x6f2')# to PRINT the conversion of, for e.g: 7:ud.view(7)# OUTPPUT: (7, '۷', '0x6f7')
#Output
Package: urduhack
Urduhack: A Python NLP library for Urdu languageUrduhack is a NLP library for urdu language. It comes with a lot of battery included features to help you process Urdu
data in the easiest way possible.Our GoalAcademic usersEasier experimentation to prove their hypothesis without coding from scratch.NLP beginnersLearn how to build an NLP project with production level code quality.NLP developersBuild a production level application within minutes.🔥 Features SupportNormalizationPreprocessingTokenizationPipeline ModuleModelsPos taggerSentimental analysisSentence classificationDocuments classificationName entity recognitionImage to textSpeech to textDatasets loader🛠 InstallationUrduhack officially supports Python 3.6–3.7, and runs great on PyPy.Installing with tensorflow cpu version.$ pip install urduhack[tf]Installing with tensorflow gpu version.$ pip install urduhack[tf-gpu]Usageimporturduhack# Downloading modelsurduhack.download()nlp=urduhack.Pipeline()text=""doc=nlp(text)forsentenceindoc.sentences:print(sentence.text)forwordinsentence.words:print(f"{word.text}\t{word.pos}")fortokeninsentence.tokens:print(f"{token.text}\t{token.ner}")🔗 DocumentationFantastic documentation is available athttps://urduhack.readthedocs.io/DocumentationInstallationHow to install Urduhack and download modelsQuickstartNew to Urduhack? Here's everything you need to know!API ReferenceThe detailed reference for Urduhack's API.How to ContributeCheck for open issues or open a fresh issue to start a discussion
around a feature idea or a bug. There is aContributor Friendlytag for issues that should be ideal for people who are not very
familiar with the codebase yet.Write a test which shows that the bug was fixed or that the feature
works as expected.Send a pull request and bug the maintainer until it gets merged and
published. :)👍 ContributorsSpecial thanks to everyone who contributed to getting the UrduHack to the current state.BackersThank you to all our backers! 🙏 [Become a backer]SponsorsSupport this project by becoming a sponsor. [Become a sponsor]📝 Copyright and licenseCode released under theMIT License.
Package: ureactme
# UReact.me Python client## InstalationIt's on pip. Just `pip install ureactme` and it's done.## Usage```pythonfrom ureactme import Clientfrom ureactme.models import Metric, User, Eventc = Client("put your token here")# Get the list of Metrics sent by users:metrics = c.get_object_list(Metric)for m in metrics:print m.id# Get the list of Users, and print his ID, the data and the auto-collected datausers = c.get_object_list(User)for u in users:print u.id, u.data, u.auto_data# Get the list of events of a certain type sent by the user in a given dayu = User(id="user_id_test")for e in u.get_events('redbutton_click', '2016-05-18'):print e.created_at, e.value, e.data# Send an eventc.send_event("suggestion_click", "user_123", 10)# Get detailed statistics for a given date range, for all users and metricsprint list(c.get_statistics(['2015-01-01', '2017-01-01']))[{u'avg_value': 15.0,u'count': 1,u'day': u'2016-05-19',u'device_user': u'user1',u'max_value': 15.0,u'metric': u'login',u'min_value': 0.0,u'sum_value': 15.0},{u'avg_value': 15.0,u'count': 1,u'day': u'2016-05-19',u'device_user': u'user2',u'max_value': 15.0,u'metric': u'login',u'min_value': 0.0,u'sum_value': 15.0}]# Get detailed user statistics (regardless of the metric)print list(c.get_statistics(['2015-01-01', '2017-01-01'], fields=["user"]))[{u'avg_value': 15.0,u'count': 1,u'device_user': u'user1',u'max_value': 15.0,u'min_value': 0.0,u'sum_value': 15.0},{u'avg_value': 15.0,u'count': 2,u'device_user': u'user2',u'max_value': 15.0,u'min_value': 0.0,u'sum_value': 30.0}]# Get detailed metric statistics per day (regardless of the user)print list(c.get_statistics(['2015-01-01', '2017-01-01'], fields=["metric", "day"]))[{u'avg_value': 15.0,u'count': 3,u'day': u'2016-05-19',u'max_value': 15.0,u'metric': u'login',u'min_value': 0.0,u'sum_value': 45.0},{u'avg_value': 13.75,u'count': 4,u'day': u'2016-05-19',u'max_value': 15.0,u'metric': u'suggestion_click',u'min_value': 0.0,u'sum_value': 55.0}]```
Package: urequest
uRequestProvides user-friendly micro HTTP client with nothing but clean objects.Basically, it is a wrapper overrequestspython library. For asynchronous version please checkaiorequestpackage.Toolspython 3.6, 3.7, 3.8requestslibrarytravisCIcode analysispytestblackmypypylintflake8UsageInstallationPlease run following script to obtain latest package from PYPI:pipinstallurequest
✨🍰✨Quick start>>>fromurequest.sessionimportSession,HttpSession>>>fromurequest.responseimportResponse>>>fromurequest.urlimportHttpUrl>>>>>>session:Session>>>withHttpSession()assession:...response:Response=session.get(HttpUrl(host="xkcd.com",path="info.0.json"))...response.is_ok()...response.as_json()...True{"month":"3","num":2284,"link":"","year":"2020","news":"","safe_title":"Sabotage","transcript":"","alt":"So excited to see everyone after my cruise home from the World Handshake Championships!","img":"https://imgs.xkcd.com/comics/sabotage.png","title":"Sabotage","day":"23",}>>>Source codegitclonegit@github.com:vyahello/urequest.git
pythonsetup.pyinstallOr using specific release:pipinstallgit+https://github.com/vyahello/urequest@0.0.1Local debuggitclonegit@github.com:aiopymake/aiorequest.git>>>importurequest>>>urequest.__doc__'Provides user-friendly HTTP client with clean objects.'⬆ back to topDevelopment notesCIProject has Travis CI integration using.travis.ymlfile thus code analysis (black,pylint,flake8,mypy,pydocstyle) and unittests (pytest) will be run automatically after every made change to the repository.To be able to run code analysis, please execute command below:./analyse-source-code.shRelease notesPlease checkchangelogfile to get more details about actual versions and it's release notes.MetaAuthor –Volodymyr Yahello. Please checkAUTHORSfile for all contributors.Distributed under theMITlicense. SeeLICENSEfor more information.You can reach out me at:vyahello@gmail.comhttps://github.com/vyahellohttps://www.linkedin.com/in/volodymyr-yahello-821746127Contributingclone the repositoryconfigure Git for the first time after cloning with yournameandemailpip install -r requirements.txtto install all project dependenciespip install -r requirements-dev.txtto install all development project dependencies⬆ back to top