Saravanan666/pypi-org huggingface dataset:
Package: untappd
untappd-pythonPython wrapper for theUntappd v4 API. Developed to powerNo Gluten Beer.Based almost entirely on the excellentfoursquare.Installationpip install untappdUsage# Construct the client object (user_agent is optional, at least 'authorize' endpoint responds with 'HTTP 429 Too Many Requests' to default User-Agent header string like 'python-requests/2.24.0')
client = untappd.Untappd(client_id='YOUR_CLIENT_ID', client_secret='YOUR_CLIENT_SECRET', redirect_url='YOUR_REDIRECT_URL', user_agent='letmein')AuthenticationFor endpoints that access a user's data, you must obtain an access token before you can request data from the API:# Build the authorization url for your app
auth_url = client.oauth.get_auth_url()Redirect your user to the addressauth_urland let them authorize your app. They will then be redirected to yourredirect_url, with a query paramater of code=XX_CODE_RETURNED_IN_REDIRECT_XX. In your webserver, parse out thecodevalue, and use it to call client.oauth.get_access_token()# Interrogate Untappd to get the user's access_token
access_token = client.oauth.get_access_token('XX_CODE_RETURNED_IN_REDIRECT_XX')

# Apply the returned access token to the client
client.set_access_token(access_token)

# Grab authenticated data
user = client.user.info()Making RequestsMaking requests to the Untappd API is simple. This wrapper mirrors the API endpoint structure detailed in thedocumentation. For example, theActivity Feed endpointis/v4/checkin/recentso you can pull data from this endpoint like this:activity_feed = client.checkin.recent()You can send parameters using keyword arguments:activity_feed = client.checkin.recent(min_id=10, limit=50)For endpoints that require a parameter in the endpoint URL, likeBrewery Info(/v4/brewery/info/BREWERY_ID), you include that parameter as the first argument in your request:brewery_info = client.brewery.info('BREWERY_ID')Any additional parameters you want to include should be keyword arguments:brewery_info = client.brewery.info('BREWERY_ID', compact='true')If the endpoint URL has three components, likeAdd to Wish List(/v4/user/wishlist/add), you must separate the second and third component with an underscore:result = client.user.wishlist_add(bid='BEER_ID')
Package: untappd-crawler
NoteThis is still early in the development and a bit rough around the edges.
Any bug reports, feature suggestions, etc are greatly appreciated. :)Installation and usageInstallationSince this is a Python package available on PyPi you can install it like
any other Python package.# on modern systems with Python you can install with pip$pipinstalluntappd_crawler# on older systems you can install using easy_install$easy_installuntappd_crawlerUsageThe commands should be mostly self-documenting in how they are defined,
which is made available through thehelpcommand.$untappd_crawlerusage:untappd_crawler-o<output_file_path>[-u<username>][-b<beer_ids_repeated>]arguments:-h,--helpshowthishelpmessageandexitRestareinthehelp
Package: untestable
Untestable Python System=======================A python equivalent of the java application here: https://bitbucket.org/tcbakes/untestable.  The purpose of this projectis to demonstrate how the patterns used in the original Java application can be applied to a python application.The original Java Untestable project will always be the home for the detailed evolutionary history of the system from itsfirst spaghetti implementation to final elegant, testable one.  So the deliberate evolutionary steps will not berepeated here.  For that level of insight, refer to the original project.
Package: untether-django-jsoneditor
django-jsoneditor-widgetDjango form widget form JSONFieldDemoIt look like this.InstallInstall:pip install django-jsoneditor-widgetSettings:INSTALLED_APPS=[# some apps ....'jsoneditor',# other apps ...]Create modelfromdjango.dbimportmodelsfromdjango.contrib.postgres.fieldsimportJSONFieldclassBook(models.Model):name=models.CharField(max_length=150)information=JSONField()def__str__(self):returnself.nameAdmin site settingsUse ModelAdminfromdjango.contribimportadminfromjsoneditor.adminimportJSONFieldModelAdminfrom.modelsimportBookadmin.site.register(Product,JSONFieldModelAdmin)Use mixinfromdjango.contribimportadminfromjsoneditor.adminimportJSONFieldAdminMixinfrom.modelsimportBook@admin.register(Book)classBookModelAdmin(JSONFieldAdminMixin,admin.ModelAdmin):passUse custom widget to specify jsoneditor optionsfromdjango.contribimportadminfromdjango.contrib.postgres.fieldsimportJSONFieldfromjsoneditor.formsimportJSONEditorfrom.modelsimportBookclassTextJSONEditor(JSONEditor):jsoneditor_options={"mode":"text"}@admin.register(Book)classBookModelAdmin(admin.ModelAdmin):formfield_overrides={JSONField:{"widget":TextJSONEditor}}
Package: untidy
UntidyA Python library for uncleaning your dataset.OverviewHave you ever wondered how to introduce specific problems to your clean data? Now you can apply our out-of-the-box solution to untidy your data according to your needs.The solution can be used primarily for educational purposes, where clean example data is made more realistic.Real world data is often poised with missing values, datetime issues, data type mismatches, string encoding problems.You can introduce the following problems to your data:Adding missing valuesAdding outliersChanging the encoding of stringsChanging the data type of numeric columns to stringsAdding duplicate rowsAdding duplicate columnsAdding extra characters to stringsThe package is designed to work withpandasDataFrames.from untidy import untidyfy
messy_df = untidyfy(clean_df, 
                    corruption_level=4, # how much mess you want (0-10)
                    nans=True,
                    outliers=True,
                    text_noise=True,
                    mess_with_numbers=True,
                    mess_with_string_encodings=True,
                    duplicate_rows=True,
                    duplicate_columns=True)InstallationCan be installed via directly via pip or by downloading theuntidy-{release-version}.tar.gzfile under release section. Run the commandpip install `untidy-{release-version}.tar.gz`
Package: untiler
Utility to take a directory of{z}/{x}/{y}.(jpg|png)tiles, and
stitch into a scenetiff (tifw/ exact merc tile bounds). Future
versions will support fast indexed reading directly fromtararchives.Installmake a virtual env + activate, then:pip install untilerDev installationgit clone git@github.com:mapbox/untiler.git

cd untiler

pip install -e .UsageUsage: untiler [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  inspectdir
  streamdir
  streammbtilesstreamdirGiven a directory of tiles + a read template, mosaic into tifs at a
lower parent “composite” zoom extentuntiler streamdir [OPTIONS] INPUT_DIR OUTPUT_DIR

-c, --compositezoom INTEGER  Tile size to mosaic into [default=13]
-z, --maxzoom INTEGER        Force a maxzom [default=max in each
                           compositezoom area]
-l, --logdir TEXT            Location for log files [default=None]
-t, --readtemplate TEXT      File path template
                           [default='jpg/{z}/{x}/{y}.jpg']
-s, --scenetemplate TEXT     Template for output scenetif filenames
                           [default='{z}-{x}-{y}-tile.tif']
-w, --workers INTEGER        Number of workers in the processing pool
                           [default=4]
-x, --no-fill                Don't fill in with lower zooms
--help                       Show this message and exit.streammbtilesMosaic an mbtiles into tifs of “composite” zoom extentuntiler streammbtiles [OPTIONS] MBTILES OUTPUT_DIR

Options:
  --co NAME=VALUE              Driver specific creation options.See the
                               documentation for the selected output driver
                               for more information.
  -c, --compositezoom INTEGER  Tile size to mosaic into [default=13]
  -z, --maxzoom INTEGER        Force a maxzom [default=max in each
                               compositezoom area]
  -s, --scenetemplate TEXT     Template for output scenetif filenames
                               [default='{z}-{x}-{y}-tile.tif']
  -w, --workers INTEGER        Number of workers in the processing pool
                               [default=4]
  -x, --no-fill                Don't fill in with lower zooms
  --help                       Show this message and exit.inspectdirStream[x, y, z]s of a directoryuntiler inspectdir [OPTIONS] INPUT_DIR

Options:
-z, --zoom INTEGER  Zoom to inspect [default = all]
--help              Show this message and exit.Outputs a line-delimited stream of tile[x, y, z]s; useful to pipe
intomercantile shapesto visualize geometry:untiler inspectdir <dir> -z 19 | mercantile shapes | fio collect | geojsonio
Package: until-nonidle
DescriptionThe tools is especially useful in combination with auto lockscreens.
The user can be notified (by a dimming action on the screen or by showing a
text message on the display) about the fact that the computer is being locked,
and can perform an action such as moving the mouse to dismiss the action.RequirementsxprintidlepsutilExample./until_nonidle.py sleep 10Thesleep 10command terminates if the user comes back from idling.
Package: untilperfect
The untilperfect application solves the buffer preparation
vessel sizing and assignment problem using mixedintegerlinearprogramming.The source repo is athttps://github.com/multipitch/untilperfect.Builds are hosted athttps://pypi.org/project/untilperfect/.Documentation is hosted athttps://untilperfect.readthedocs.io/.This project was forked fromhttps://github.com/multipitch/dissertation.
The dissertation repo was created for my masters dissertation on the
subject towards an MSc in Business Analytics from University College
Dublin; further development has been forked here so that the
dissertation repo remains frozen.Install via pip:$ pip install untilperfectProvides theuntilperfectCLI command$ untilperfect --help
usage: model.py [-h] [-b BUFFERS] [-n] [-p PARAMETERS] [-f PATH] [-s SOLVER]
                [-t PROBLEM_TYPE] [-v VESSELS] [-w]

Solves the buffer preparation assignment and selection problem.

optional arguments:
-h, --help            show this help message and exit
-b BUFFERS, --buffers BUFFERS
                      buffers filename (default: 'buffers.csv')
-n, --no-plot         do not generate plot
-p PARAMETERS, --parameters PARAMETERS
                      parameters filename (default: 'parameters.ini')
-f PATH, --path PATH  file path (default: <current working directory>)
-s SOLVER, --solver SOLVER
                      solver to be used (default: 'COIN_CMD')
-t PROBLEM_TYPE, --problem-type PROBLEM_TYPE
                      specify model to solve (default: 'complete'), other
                      model options are 'basic', 'minimized_hold_time',
                      'mimimized_used_volume'
-v VESSELS, --vessels VESSELS
                      vessel filename (default: vessels.csv)
-w, --write           write problem to file in .lp formatDistributed under the MIT License.© Sean Tully 2018-2019.
Package: untinyurl
Un-shorten urls found in given text,Work as a standalone unshortener (reading from stdin, or its parameter) :From argv :
$ wget -qO- –no-check-certificate ‘https://raw.github.com/JulienPalard/untinyurl/master/README’ | untinyurlFrom arguments :
$ untinyurl ‘The repo is here:http://bit.ly/xMN7PY’Or as a module:
$ python
Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
[GCC 4.4.5] on linux2
Type “help”, “copyright”, “credits” or “license” for more information.
>>> from untinyurl import untiny
>>> untiny(‘http://bit.ly/xMN7PY’)
‘https://github.com/JulienPalard/untinyurl’
Package: untis-dif-file-writer
untis-dif-file-writerA simple Python package to write dif-files from Untis.Seehttps://platform.untis.at/HTML/WebHelp/de/untis/index.html-> search for "export dif" -> Export/Import DIF-Dateien.Installationpip install untis-dif-file-writerorpoetry add untis-dif-file-writerUsagefrom untis_dif_file_writer import write_dif_file, write_xml_file, write_all_dif_files, UntisFileNumber

# Write the students dif-file:
write_dif_file(UntisFileNumber.STUDENTEN, 
               "path/to/Untis.exe",
               "path/to/Untis-file",
               path_output_folder="path/to/output/folder"),
               output_file_name="students.TXT")

# Write the xml-file:
write_xml_file("path/to/Untis.exe", "path/to/Untis-file")
               
# Write all dif-files:
write_all_dif_files("path/to/Untis.exe", "path/to/Untis-file")
Package: untitled-job-runner
untitled job runnerUntitled Job Runner is a flexible and extensible Python framework for running jobs
and tasks. Jobs can be run locally or elsewhere, and we try to make few assumptions
about the nature of the jobs - you can run a mix of scheduled, continuous, or ad hoc
jobs which may or may not share tasks with other jobs.This framework has evolved out of a university research infrastructure facility that
collects data, stores it, and processes it in a variety of ways for a variety of
research projects with differing needs. The initial development has been with
a data infrastructure / data science use case in mind, and we hope it will be useful
for other use cases as well.
Package: untitleoop
โปรแกรมนี้ใช้ำหรับเริ่มต้นเขียนโปรแกรมแบบ Object Oriented Programวิธีติดตั้งเปิด CMD / Terminalpipinstalluntitloopวิธีใช้เปิด IDLE ขึ้นมาแล้วพิมพ์…fromuntitleoopimportStudent,Tesla,SpecialStudent,Teacher# Day 0print('\n--- Day 0 ---')allstudent=[]teacher1=Teacher(fullname='Ada Lovelace')teacher2=Teacher(fullname='Billy Gloves')print(teacher1.students)# Day 1print('\n--- Day 1 ---')st1=Student('Alberto','Einsteino')allstudent.append(st1)teacher2.AddStudent(st1)print(st1.fullname)# Day 2print('\n--- Day 2 ---')st2=Student('Steven','Joops')allstudent.append(st2)teacher2.AddStudent(st2)print(st2.fullname)# Day 3print('\n--- Day 3 ---')foriinrange(3):st1.Coding()st2.Coding()st1.showExp()st2.showExp()# Day 4print('\n--- Day 4 ---')stp1=SpecialStudent('Helmut','Schmeicer','Zemo')allstudent.append(stp1)teacher1.AddStudent(stp1)print(stp1.fullname)print('Professor give me 20 points')stp1.exp=20stp1.Coding()stp1.showExp()# Day 5print('\n--- Day 5 ---')print('How do you go home?')print('{},{}and{}'.format(allstudent[0],allstudent[1],allstudent[2]))forstinallstudent:print('I\'m{}, going by{}'.format(st.name,st.vehicle))ifisinstance(st,SpecialStudent):st.vehicle.SelfDriving(st)# Day 6print('\n--- Day 6 ---')teacher1.CheckStudents()teacher2.CheckStudents()print('Total exp for 2 guys is ',st1+st2)พัฒนาโดย: ByllyVylly
Package: untokenize
untokenizetransforms tokens into source code. Unlike the standard library’stokenize.untokenize(), it preserves the original whitespace between tokens.Usageimportuntokenizesource_code=untokenize.untokenize(tokens)TestsTo run the unit tests:$ ./test_untokenize.pyThere is also an acid test. It tokenizes Python code and confirms that the code
generated by untokenize exactly matches the original source code from before
tokenization:$ ./test_acid.py
Package: untouched
Untouchedhttps://pypi.org/project/untouched/https://github.com/DAMACANER/untouchedCarbon copy ofhttps://github.com/lann/builderfor making a Python NoSQL query builder.Installing:poetryadduntouchedExample:fromuntouched.builderimportBuilder,get_struct,Tfromuntouched.registryimportRegistryfromtypingimportOptionalNameDBField:str="name"AgeDBField:str="age"classUserQueryBuilder(Builder):"""The UserBuilder class inherits from Builder and provides specific methods to set the 'name' and 'age' attributes."""def__init__(self):super().__init__()defname(self,val:str)->'UserQueryBuilder':"""Creates a new UserBuilder with the 'name' attribute set to the provided value."""returnself.set_value(NameDBField,val)defage(self,val:int)->'UserQueryBuilder':"""Creates a new UserBuilder with the 'age' attribute set to the provided value."""returnself.set_value(AgeDBField,val)classUser:"""The User class represents the structure that the UserBuilder will build."""def__init__(self,name:Optional[str]=None,age:Optional[int]=None):self.name=nameself.age=ageregistry=Registry()registry.register(UserQueryBuilder(),User())user_builder=UserQueryBuilder().name("caner").age(25)print(user_builder.get_builder_map())# Output:## {'age': 25, 'name': 'caner'}Thanks a lot to Lann for the original builder package, this is wonderful.Not a perfect copy of the library, yet it works! Which is, what python is right? It is fast enough, and it works.
Package: un-treaties
United Nations TreatiesThis package is for crawling and presenting data from theUN Treaties web site.Crawling the website hosting the UN TreatiesUse the command$un_crawlThis will crawl the UN Treaties web site and cache the files it downloads
locally in a.un_treatiesdirectory inside your home directory.If you need to refresh the cache you can run it with:un_crawl --no-cacheRun a Rest API locally to interact with the dataTo start serving data athttp://localhost:5000, simply do:$un_serve
Package: untruncate-json
# untruncate_json
Python library to repair truncated json. Translated directly from the typescript original version## Installation`bash pip install untruncate_json `## UsageIn some cases, a partial json document is invalid and there is no way to recover. A common scenario using OpenAI’s chatbot is that the AI created json is truncated at the end of the document. This library will attempt to repair the json by adding the missing closing brackets.If the context of the json is relatively simple and holds natural language, truncating the text might not degrade the final result much.`python import untruncate_json assertuntruncate_json.complete('{"foo":"bar') =='{"foo":"bar"}'`## Goals
My goal is for the library to be a pure python library that handles as many cases as the other libraries.## Credits
Original Typescript version by dphilipson, MIT license. Code translated by a lazy ChatGPT that didn’t
want to translate the long switch blocks. Copilot translated the switch blocks.## Prior Art[untruncate-json](https://github.com/dphilipson/untruncate-json) - Original Typescript version[truncjson](https://pypi.org/project/truncjson/) Cython implementation[jsonfixer](https://pypi.org/project/jsonfixer/) Fork of half-json?[half-json](https://pypi.org/project/halfjson/)## Benchmarkstruncjson: 1.28untruncate_json: 11.39untruncate_json: 1.14 (if you runmypyc untruncate_jsonjsonfixer: 23.06
Package: untt
# untt<a href="http://untt.n9co.de/"><img src="https://raw.githubusercontent.com/n9code/untt/master/docs/logo/logo.png"alt="untt Logo"align="right"width=70height=70 /></a>[![PyPI](https://img.shields.io/pypi/v/untt.svg)](https://pypi.python.org/pypi/untt)[![Build Status](https://travis-ci.org/n9code/untt.svg?branch=master)](https://travis-ci.org/n9code/untt)[![Coverage Status](https://coveralls.io/repos/github/n9code/untt/badge.svg?branch=master)](https://coveralls.io/github/n9code/untt?branch=master)[![Code Health](https://landscape.io/github/n9code/untt/master/landscape.svg?style=flat)](https://landscape.io/github/n9code/untt/master)[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/n9code/untt/master/LICENSE)
Package: unu-api
UNU_APIБиблиотека для интеграции с биржой микрозадачhttps://unu.imСодержаниеКак работает UNU?Доступные типы задачУстановкаЗависимостиИспользованиеТестированиеДоступные методыКастомные исключенияУстранение неполадокСсылкиКак работает UNU?Регистрируетесь на сайтеДобавляете задание и оплачиваете необходимое количество работПолучаете результат и проверяете выполненные работыДоступные типы задачНаполнение сайтов: комментарии, отзывы, форумы, доски объявленийПродвижение в социальных сетях: подписчики в группы, лайки, репостыПродвижение приложений: установки и действияЛюбые произвольные задачи, которые нужно выполнять на регулярной основеУстановкаpipinstallunu_apiЗависимостиНа данный момент библиотека зависит только отrequestsИспользованиеПолучите токен в личном кабинете на сайтеhttps://unu.im/api-infoи инициализируйте класс для работы с APIfromunu_apiimportApiu=Api(token="ВАШ_ТОКЕН")request=u.get_balance()ТестированиеПротестировать библиотеку можно запустив команду pytest указав в переменной окружения ваш API_KEYAPI_KEY=ВАШ_ТОКЕНpytestДоступные методыРеализован полный набор методов доступный в официальном APIget_balance- Возвращает количество доступных средствget_folders- Возвращает все созданные папки с задачамиcreate_folder- Создаёт новую папкуmove_task- Перемещает задачу в указанную папкуget_tasks- Возвращает существующие задачиget_reports- Возвращает отчёты по определённой задаче или все существующие отчётыapprove_report- Принимает (оплачивает) отчёт по заданиюreject_report- Отклоняет отчёт по заданиюget_expenses- Возврашает сумму израсходованных средствadd_task- Создаёт новую задачуtask_limit_add- Устанавливает лимит (добавляет выполнения) определённой задачиedit_task- Редактирует существующую задачуget_tariffs- Возвращает все доступные тарифыtask_pause- Приостанавливает выполнение задачиtask_play- Активирует выполнение задачиget_minter_wallet- Возвращает адрес Minter-кошелька для пополнения баланса аккаунтаКастомные исключенияМне пришлось реализовать кастомный набор ошибок для удобства разработки.AuthError- Исключение при отсутствие токенаBalanceError- Исключения при отрицательном балансеRequestError- Исключение для неуспешных запросов к APIJsonParsingError- Исключение для ошибок декодирования JsonUnknowError- Для неизвестных ошибокУстранение неполадокВремя от времени могут переставать работать определенные методы. Вместо json будет в ответ прилетать лог ошибки php, обычно я пишу в поддержку на сайте и разработчики фиксят эти баги. Для этого кейса я ввел кастомное исключениеJsonParsingError.СсылкиСайт биржи -https://unu.imБлог автора -https://egorovegor.ruСсылка на GitHub -https://github.com/r4hx/unu_api/Ссылка на PyPi -https://pypi.org/project/unu_api/
Package: unused-deps-py
# Unused Deps Pyunused_deps_py is a command line tool to determine any unused dependencies
in [java_library](https://docs.bazel.build/versions/master/be/java.html#java_library)
targets. It outputsbuildozercommands to apply the suggested
prunings. It’s based on [unused_deps](https://github.com/bazelbuild/buildtools/blob/master/unused_deps/README.md)
but it also adds support for [rules_jvm_external](https://github.com/bazelbuild/rules_jvm_external)
maven repositories.## Installation### Preferred way`shell $ pip installunused-deps-py$ unused_deps_py--help`### Building from sources`shell $ bazel run //unused_deps_py----help`## Usage`shell unused_deps_py--workspace-pathWORKSPACE_PATHTARGET...`Here,TARGETis a space-separated list of Bazel labels, with support for:alland…## Releasing to PyPIIn order to release a new version you first need update the version number in:BUILD.bazelmain.pyThen you need to run:`shell $ bazel build //unused_deps_py:unused_deps_py_wheel $ twine uploadbazel-bin/unused_deps_py/unused_deps_py-<version>-py3-none-any.whl`## Local manual testing`shell # build bazel build//unused_deps_py/...# store the filename of the Python Wheel in a variableWHL="$(ls$(bazel infobazel-bin)/unused_deps_py/*.whl)"# move to a temporary directory pushd /tmp # setup a virtual environment to avoid polluting your Python installation pipenv install # install the wheel pipenv install $WHL # enter the pipenv environment to do manual testing pipenv shell # do some manual tests unused_deps_py-hunused_deps_py--versionunused_deps_py--workspace-path/whatever//libs/super-lib# exit the virtual environment exit # delete the virtual environment pipenv--rmrm Pipfile && rm Pipfile.lock # go back to your previous directory popd `
Package: unusualvolume
unusualvolumeMonitor stock market transactions for unusual volume and (possibly) make millions.DemoAboutA simple command line tool to retrieve stock market data (US-only) and analyze trading volumes for anomalies.Use CasesMining valuable trading information and getting ahead of possible large changes in stock pricesTransaction monitoring for OSINT (open source intelligence) purposesCollecting data to train your own ML modelInstallation$pipinstallunusualvolume--upgradeUsage$unusualvolumescan