Saravanan666/pypi-org huggingface dataset:
Package: urso
urso :bear:Generate random text, audio, images, and videosUrso is a Python library and console application for generating random content. It provides functionalities for generating random text, audio, images, and videos with customizable parameters. Whether you need dummy content for testing, placeholder media, or random data generation, Urso has got you covered.FeaturesGenerate Text: Create random text of a specified number of words.Generate Audio: Generate audio with random noise for a given duration.Generate Image: Create an image with noise of a specified width and height.Generate Video: Produce a video of a given duration and resolution.InstallationUse pip to install the urso package:pipinstallursoGetting StartedTo use Urso in your Python project, simply import the library and call the relevant functions for generating the desired content.To generate content via the console app, execute the appropriate command with the desired parameters.For programmatic access, interact with the Flask server's API endpoints to generate content on the fly.UsageThe project consists of three main components:LibraryConsole AppFlask API(Coming soon!)LibraryThe core functionality is implemented as a Python library. It provides functions to generate random content in different formats.Generate a random text file with 500 words:fromurso.core.text_generatorimportgenerate_text,save_texttext=generate_text(500)save_text(text,'test_text.txt')Generate a 5-second audio file:fromurso.core.audio_generatorimportgenerate_audio,save_audioaudio,_=generate_audio(5)save_audio(audio,"test_audio.wav")Generate a 1080x720 pixel image:fromurso.core.image_generatorimportgenerate_image,save_imageimage=generate_image(1080,720)save_image(image,"test_image.png")Generate a 5-second 1080x720 pixel video:fromurso.core.video_generatorimportgenerate_video,save_videovideo,_,_,_=generate_video(5.0,1080,720,30)save_video(video,"test_video.mp4",30)Console AppA command-line interface is available to generate individual content items. The console app allows users to specify the desired parameters and output file for each content type.Generate a random text file with 500 words:urso--generate-text500Generate a 5-second audio file:urso--generate-audio5Generate a 1080x720 pixel image:urso--generate-image1080720Generate a 5-second 1080x720 pixel video:urso--generate-video51080720Flask ServerA Flask server exposes RESTful APIs to generate content programmatically. It provides endpoints for generating text, audio, images, and videos with customizable parameters.(Coming soon!)ContributingContributions to Urso are welcome! Whether it's adding new content generation features, improving existing functionality, or enhancing the documentation, feel free to submit pull requests.Please refer to the contribution guidelines and code of conduct for more information.LicenseUrso is released under the MIT License. See the LICENSE file for more details.Feel free to modify and expand upon this project description to suit your specific needs and project details.
Package: urt30arcon
Quake3 Async RCON ClientRequirementsGame:Urban Terror 4.3.4Python: 3.11+Usageimportasynciofromurt30arconimportAsyncRconClientasyncdefasync_main()->None:client=awaitAsyncRconClient.create_client(host="127.0.0.1",port=27960,password="sekret")awaitclient.bigtext("hello world")game=awaitclient.game_info()ifgame.players:first_player=game.players[0]awaitclient.slap(slot=first_player.slot)if__name__=='__main__':asyncio.run(async_main())
Package: urtimer
It looks like:+---------------------------------------------------------+
|                                                         |
|                                                         |
|     ▄▀▀▀▄ ▄▀▀▀▄   ▄▀▀▀▄ █▀▀▀▀   ▄▀▀▀▄ ▄▀▀▀▄   ▄▀▀▀▄     |
|     █   █ █   █ ▀ █   █ █     ▀ █   █ █   █   █   █     |
|     █   █ █   █ ▄ █   █ ▀▀▀▀▄ ▄ █   █ █   █   █   █     |
|     █   █ █   █   █   █     █   █   █ █   █   █   █     |
|      ▀▀▀   ▀▀▀     ▀▀▀  ▀▀▀▀     ▀▀▀   ▀▀▀  ▀  ▀▀▀      |
|                                                         |
|                                                         |
+---------------------------------------------------------+You can also watch ademonstration clip.ContentsFeaturesInstallationControlsKeysMouseDependenciesIssues and ContributionsCopyrightResourcesFeaturesModesCountdown timerStopwatch (-Sor--stopwatch)Support sleep-like suffixes like “d”, “h”, “m”, and “s”.Support countdown date (-dor--date) like “noon” or “tomorrow 1 am”Window title updatingInstallationYou can install urtimer via pip:pipinstallurtimerControlsKeysZ/A:decrease/increase hourX/S:decrease/increase minuteC/D:decrease/increase secondSpace:start/pause timerQ:quit the programMouseLeft-button:start/pause timerDependenciesurwidthe UI libraryparsedatetimeonly required for-dor--dateoption.pipinstallparsedatetimeIssues and ContributionsFeel free to open an issue inissue trackerfor bugs, feature requests, or pull requests.Copyrighturtimer is licensed under the MIT License, seeCOPYING.ResourcesPyPIWebsite
Package: urwidgets
urWIDgetsA collection of widgets forurwidContentsInstallationUsageContributionSponsor This ProjectInstallationRequirementsPython>= 3.7urwid(will be installed automatically)StepsThe lateststableversion can be installed fromPyPIwith:pipinstallurwidgetsThedevelopmentversion can be installed with:pipinstallgit+https://github.com/AnonymouX47/urwidgets.gitUsage🚧 There might be incompatible changes between minor versions ofversion zero!If you want to use this library in a project while it's still on version zero, ensure you pin the dependency to a specific minor version e.g>=0.1,<0.2.See thedocsfor the API Reference (with usage examples).ContributionPlease read through theguidelines.Sponsor This ProjectAny amount will go a long way in aiding the progress and development of this project.
Thank you! 💓
Package: urwid-picker-widgets
Urwid Picker WidgetsSpecialized picker widgets for urwid that extend its features.Theadditional_urwid_widgetslibrary byAFoeeeadds some good specialized picker widgets, e.g. date picker, integer picker, etc.However, due to a lack of activity/sync from that project, I decided to extend and update the features by adding atime picker widgetto the list.This library mainly focuses on*Pickerwidgets for urwid.
(Also checkoutMessageDialogwidget fromadditional_urwid_widgets!)InstallationThe project can be installed viapip.OptionsThere are several approaches to install a package via the terminal (as describedhere):Setup a virtual env to install the package (recommended):python3 -m venv env
 source ./env/bin/activate
 python3 -m pip install urwid-picker-widgetsInstall the package to the user folder:python3 -m pip install --user urwid-picker-widgetsInstall to the system folder (not recommended):python3 -m pip install urwid-picker-widgetsWidgetsSee the corresponding wiki entries of the widgets for more information.DatePickerA (rudimentary) date picker.TimePickerA (rudimentary) time picker.IndicativeListBoxAurwid.ListBoxwith additional bars to indicate hidden list items.IntegerPickerA selector for integer numbers.SelectableRowWrapsurwid.Columnsto make it selectable and adds behavior.FAQSymbols are not encoded properly (Instead question mark symbol '?' is visible')Type following command in terminal for the fix.export LANG="en_IN.UTF-8"(HereINrefers to theIndia, the native country of the user)
Package: urwid-satext
Urwid SàT extension widgets is a set of widgets for the console user interface library Urwid (http://excess.org/urwid/). This library, originaly made for the Libervia (formerly “SàT”) project, was eventually separated so other softwares can use it. Widgets provided include password text box, tab container, dialogs, file chooser etc. Feel free to go to the project page for more informations.
Package: urwid_timed_progress
urwid_timed_progressurwid_timed_progressis an Urwid progress widget that displays enhanced
progress with custom units, rate of progress, and estimated time remaining.ScreencastExample screenshot showing two progress barsInstallationpip install urwid_timed_progressUsageCreate timed progress bar, much like a regular ProgressBar:file_size_mb = 1234
progress = TimedProgressBar('normal', 'complete', label='Current File',
                            units='MB', done=file_size_mb)As the file operation proceeds update the progress bar:progress.add_progress(1)  # each time 1 unit of progress has been madeadd_progress()updates the progress bar rate and estimated time remaining.To update the timer without adding progress do:progress.add_progress(0)Seeexample code.DevelopmentThe project lives on GitHub.Bug reports, questions, and comments are most welcome.
Package: urxvt_tabbed
URxvt terminals with gtk 3 tabs. Tabs are implemented by embedding URxvt
in a gtk notebook container, using pygobject as an interface to gtk.
URxvt does provide a rudimentary default gtk tabs implementation using
perl, but with limited features (e.g. no tab dragging or tab closing).FeaturesTab name editing (double click).Tab closing, drag & drop.Inherits tab titles set by shells.Customizable keyboard shortcuts.Installation and UseDependenciespython-gobjectpython3-xlibInstalling DependenciesArch Linux:sudo pacman-Spython-gobjectsudo yaourt-Spython3-xlibOther Linux systems:Installpython-gobjectusing your favorite package managerpip3 installpython3-xlibInstalling URxvt Tabbedgit clonegit@github.com:simonzack/urxvt-tabbed.gitcdurxvt-tabbed./bin/urxvt-tabbedConfigurationThe configuration is read from~/.urxvt_tabbed/urxvt_tabbed.conf,
which uses the ini format:[section]foo=bar[ui]font:font
descriptionused for UI, e.g.Monospace,Inconsolata 12orEnvy Code R italic 16. Defaults come from gtk.[general]close_last_tab: One ofnew,close,blank[keymap]prev_tab: Previous tab, defaults toControl + Page_Upnext_tab: Next tab, defaults toControl + Page_Downmove_tab_prev: Move tab left, defaults toControl + Shift + Page_Upmove_tab_next: Move tab right, defaults toControl + Shift + Page_Downnew_tab: New tab, defaults toControl + Shift + Tclose_tab: Close tab, defaults toControl + F4ScreenshotsContributingIf you find any bugs or have any feature requests, please open an issue.
I’m happy to accept any pull requests.LicenseLicensed under GPLv3.
Package: us2-django-cognito-jwt
Django Cognito JWTAn Authentication backend for Django Rest Framework for AWS Cognito JWT tokensInstallationpipinstalldjango-cognito-jwtUsageAdd the following lines to your Djangosettings.pyfile:COGNITO_AWS_REGION='<aws region>'# 'eu-central-1'COGNITO_USER_POOL='<user pool>'# 'eu-central-1_xYzaq'COGNITO_AUDIENCE='<client id>'(Optional) If you want to cache the Cognito public keys between requests you can
enable theCOGNITO_PUBLIC_KEYS_CACHING_ENABLEDsetting (it only works if you
have the DjangoCACHESsetup to anything other than the dummy backend).COGNITO_PUBLIC_KEYS_CACHING_ENABLED=TrueCOGNITO_PUBLIC_KEYS_CACHING_TIMEOUT=60*60*24# 24h caching, default is 300sAlso update the rest framework settings to use the correct authentication backend:REST_FRAMEWORK={'DEFAULT_AUTHENTICATION_CLASSES':[...'django_cognito_jwt.JSONWebTokenAuthentication',...],...}Be sure you are passing the ID Token JWT from Cognito as the authentication header.
Using the Access Token will work for authentication only but we’re unable to use theget_or_create_for_cognitomethod with the Access Token.(Optional) If you want to use a different user model then the default DJANGO_USER_MODEL
you can use theCOGNITO_USER_MODELsetting.COGNITO_USER_MODEL="myproject.AppUser"
Package: us2djongo
Use Mongodb as a backend database for your django project, without changing a
single django model!UsageInstall djongo:pip install djongoInto settings.py file of your project, add:DATABASES = {
     'default': {
         'ENGINE': 'djongo',
         'NAME': 'your-db-name',
     }
 }Run (ONLY the first time to create collections in mongoDB):manage.py makemigrations
manage.py migrateYOUR ARE SET! HAVE FUN!RequirementsDjongo requires python 3.6 or above.How it worksDjongo is a SQL to mongodb query transpiler. It translates a SQL query string
into a mongoDB query document. As a result, all Django features, models etc
work as is.Django contrib modules:'django.contrib.admin',
'django.contrib.auth',
'django.contrib.sessions',and others… fully supported.Important linksFull DocumentationSource code
Package: usaddress
usaddress is a python library for parsing unstructured address strings intoaddress components, using advanced NLP methods.From the python interpreter:>>> import usaddress
>>> usaddress.parse('123 Main St. Suite 100 Chicago, IL')
[('123', 'AddressNumber'),
 ('Main', 'StreetName'),
 ('St.', 'StreetNamePostType'),
 ('Suite', 'OccupancyType'),
 ('100', 'OccupancyIdentifier'),
 ('Chicago,', 'PlaceName'),
 ('IL', 'StateName')]
Package: usaepay
USAePay Python SDKPackage for connecting to USAePay's rest API using python 3.6 or later.PrerequisitesPython version 3.6+Download fromhttps://www.python.org/downloads/Pip3 (optional)Should be automatically installed with python but if not:curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python3 get-pip.py --user
pip3 --versionRequestsInstalled automatically if Pip is used.  For source code visithttps://github.com/psf/requestsInstallationDeploymentThis package requires a USAePay account.  You will also need to create an API key with a PIN in your account.  It is recommend to run usaepay.api.set_authentication('key','pin') before any other calls.Version0.0.1AuthorsUSAePay-USAePayLicenseThis project is licensed under the MIT License - see theLICENSE.txtfile for details
Package: usagelogger
Easily log API requests and responses to your ownsystem of record.Middleware IntegrationsLoggers can be added to these types of applications with only minor configuration changes:AIOHTTPDjangoFlaskRequestsLogging With APILoggers can be directly integrated into your application via our loggingAPI.
This requires more effort than middleware integrations, but also offers the greatest flexibility and control.Protecting User PrivacyLoggers always have an active set ofrulesthat control what data is logged
and how sensitive data is masked. By default, loggers apply a strict set of predefined rules, but logging rules are easily
customized to meet the needs of any application.© 2016-2021Resurface Labs Inc.
Package: usagestats
This package is meant to easily get usage statistics from the users of your
program.Statistics will be collected but won’t be uploaded until the user opts in. A
message will be printed on stderr asking the user to explicitly opt in or opt
out.UsageYou can easily collect information from your program by adding usagestats to
your project’s requirements and using the library. Here is an example:import usagestats
import sys


optin_prompt = usagestats.Prompt(enable='cool_program --enable-stats',
                                 disable='cool_program --disable-stats')

# Location where to store stats
# Also allocates a unique ID for the user
# The version is important, since the information you log (or the format)
# might change in later versions of your program
stats = usagestats.Stats('~/.myprog/usage_stats',
                         optin_prompt,
                         'https://usagestats.example.org/',
                         unique_user_id=True,
                         version='0.1')


def main():
    if len(sys.argv) < 2:
        pass
    elif sys.argv.get(1) == '--enable-stats':
        stats.enable_reporting()
        sys.exit(0)
    elif sys.argv.get(1) == '--disable-stats':
        stats.disable_reporting()
        sys.exit(0)

    if sys.version_info < (3,):
        # Stores some info, will be reported when submit() is called
        stats.note({'mode': 'compatibility'})

    # Report things
    stats.submit(
        # Dictionary containing the info
        {'what': 'Ran the program'},
        # Flags making usagestats insert more details
        usagestats.OPERATING_SYSTEM,  # Operating system/distribution
        usagestats.PYTHON_VERSION,    # Python version info
        usagestats.SESSION_TIME,      # Time since Stats object was created
    )


if __name__ == '__main__':
    main()submit()will, by default, store the info in the specified directory. Nothing
will be reported until the user opts in; a message will simply be printed to
stderr:Uploading usage statistics is currently DISABLED
Please help us by providing anonymous usage statistics; you can enable this
by running:
    cool_program --enable-stats
If you do not want to see this message again, you can run:
    cool_program --disable-stats
Nothing will be uploaded before you opt in.ServerTo collect the reports, any server will do; the reports are uploaded via POST
as a LF-separated list ofkey:valuepairs. A simple script for mod_wsgi is
included; it writes each report to a separate file. Writing your own
implementation in your language of choice (PHP, Java) with your own backend
should be fairly straightforward.
Package: usagi
usagiis a plugin forhaasthat adds support for discovering Web
API test cases descibed in YAML.usagirequireshaas v0.6.0or later.Current FeaturesDescribe web API tests using YAML.Template URLs to avoid repeating items.Variables and target hostname can be provided by environment variables.YAML format contains multiple test cases.Each test case is a grouping of related tests.Make flexible assertions about the server’s response.Contribute web API test runner functionality through plugins.Assert that the SHA256 of the response body matches an expected value.Filter JSON response bodies before comparison usingjqfilter
syntax:http://stedolan.github.io/jq/PluginsVar loadersLoad from environmentTemplate string based on other varsLoad from file, either plaintext or JSONAssertionsAssert status codeAssert header is present or matches value or regexpTODOAdd more assertions!Test config formatversion: Currently required, but unverified (we are atv0.1.0.devN, after all).config: Common test case configuration.host: The name (or IP) of the host to test.Can come from env, template, file, likevars.scheme: The scheme (http,https) to use to connect tohostvars: Common variable definitions for all test cases; formatted
as a dictionary of var name to type and value.Simple string vars are allowed.Others are specified as a dictionary with keytypeto
determine how to load.cases: Collection of test cases. Each case contains multiple testsname: The name of the test casetests: Collection of individual testsname: The name of the testurl: The URI/path relative tohostagainst which the test
will be executed.method: The HTTP method to use for the test.assertions: List of assertions to make about the test.Example Test---version:'1.0'config:# Host is loaded as an environment variablehost:type:envenv:TEST_HOSTNAMEvars:# Simple string varapi_root:"/api/v1/json"# Template varmetadata:type:templatetemplate:"{api_root}/metadata"# Variable loaded as JSON from fileexpected_index:type:filefile:some_file.jsonformat:jsoncases:-name:"Basic"tests:-name:"TestrootURL"url:"/"assertions:-name:status_codeexpected:200-name:headerheader:Content-Typevalue:text/plain-name:"Acase"tests:-name:"Authenticationfailure"url:type:templatetemplate:"{metadata}/auth/required"parameters:method:GETheaders:Content-Type:application/jsonassertions:-name:status_codeexpected:401-name:headerheader:WWW-Authenticateregexp:"Basicrealm=.*"-name:"POSTjson"url:type:templatetemplate:"{metadata}/post"parameters:method:POSTbody:format:jsonlookup-var:falsevalue:some:["json-compatible","structure"]assertions:-name:status_codeexpected:204
Package: usainboltz
Usain BoltzUsain Boltz is a Python/Cython library meant to automate the random generation
of tree-like structures.The library was primarily designed to be used with theSagemathmathematics software system but Sagemath is no
longer a dependency and the library is now perfectly usable both within and
without a Sagemath environment.InstallVia pip (recommended)Usain Boltz is available on PyPI, just type:pip3 install usainboltzFrom sourceSystem requirements:One of our dependencies requirescmaketo build. It is installed by default
on most distributions but if you encounter build errors withosqpthat may
be the reason.You also need to havecythoninstalled on your
system to be able to build Usain Boltz.Build, test and install:Runmake buildto build theCandCythonextensionsRunmake testto run the doctestsRunpython3 setup.py install [--user]to install in your current python
environmentSagemathBoth installation methods make Usain Boltz available to SagemathDocumentationProvided you havesphinxinstalled, you can
build the documentation withmake doc.Examples and demoSome examples are available in theexamplesandsage_examplesmodules in
the documentation. In particular, thesage_examplesmodule illustrates how
Usain Boltz can be used to generate sage objects.A sage notebook is available in thedemo/folder which shows how Usain Boltz
can be used to generate various objects related to binary trees from the same
grammar and generator.
Package: usajobs
https://github.com/brennv/usajobsInstallationpipinstallusajobsGetting startedimportusajobsresults=usajobs.search('manager')len(results)# 1392result=results[0]# first resultresult.id# 'usajobs:445507500'result.organization_name# 'National Park Service'result.position_title# 'Project Manager (Interdisciplinary)'result.start_date# '2016-08-23'result.end_date# '2016-09-13'result.url# 'https://www.usajobs.gov/GetJob/ViewDetails/445507500'result.locations# ['Vancouver, WA']result.minimum# 71012result.maximum# 92316result.rate_interval_code# 'PA'
Package: usa-net
USA NetA robust method for mapping an environment and doing language-based planning.Getting StartedInstall frompypi:pipinstallusa-netInstall from Github:pipinstallgit+https://github.com/codekansas/usa.gitAlternatively, clone and install:gitclonegit@github.com:codekansas/usa.gitcdusa&&pipinstall-e.There are some extra dependencies for the notebooks which can be installed with:pipinstall'usa-net[ipynb]'See thenotebooksfor examples.RequirementsPython 3.10+PyTorch 2.0+DevelopmentAdd pre-commit hooks to clean Jupyter notebooks:pre-commitinstallNotesIf you are having trouble installing Open3D on Mac, install Pybind through Conda instead:pipuninstallopen3d
condainstallopen3d
Package: usa_spending
Python API for the numerous APIs available through [USA
Spending](http://usaspending.gov/data?carryfilters=on).Usage>>> from usa_spending import Contracts
>>> c = Contracts()
>>> c.search(state='TX', count=500)>>> # Search for contracts for a specific year.
... c.search(zipcode=12345, year=2010)>>> # Search for contracts within a date range.
... c.search(state='CA', first_year=2008, last_year=2010)>>> # Search for contracts not competed on.
... c.search(state='NY', competition='not competed')>>> # Search for contracts not available for competition.
... c.search(state='NY', competition='N/A')>>> # Find the number of contracts matching your criteria.
... data = c.search(zipcode=12345)
>>> found = data.response.result.numFound
>>> print found
6789CopyrightCopyright (c) 2011 Code for America Laboratories.See LICENSE for details.