Saravanan666/pypi-org huggingface dataset:
Package: unix-pyshell-pybc2
# This project implements the Command Line Interface like UNIX-shellThis project includes the following commands:## Directory commands:ls(with support for -R)Lists the files and directories in the current directory-R lists the files and directories recursivelypwdReturns the present working directorymkdirCreates a new directoryrmdirRemoves the directory if it is emptycdChanges the current directory to the directory mentioned in the argument## File Commands:grepTo find matching patternsfindFinds the given file in the given pathcatUsed to display the contents of the given file. With ‘>’ can be used to create and write into a new filecpCopy contents from source to destinationmvMove contents from source to destionationrm(with support for -r)Remove the file or directory with a confirmation to remove non empty items.-r Removes recursivelysizeofReturns the size of the file in the argumentshead-n for the number of lines it has to print since the beginning of fileDefault is 10tail-n for the last n number of lines to print from the fileDefault is 10## Miscellaneous commands:dateReturns the current date and timewhoamiReturns current user namehostnameReturns current host nametimeitReturns the time taken to run the command givenexitExit from the shellhistoryShows the history of commands executed so far# Installing the packageTo install and use, run the following command from your command line> pip install pyshell-pybc2
Package: unixreg
unixregwhyWhile working on porting a python application to Linux I came across many uses of winreg that could not easily be ported over.Instead of reworking the system I decided to implement a bandaid solution that deals with it transparently.how to useUpdate your winreg imports with thistry:importwinregexceptImportError:importunixregaswinregsimply importing unixreg should be enough though, winreg is imported if foundlicensethis project is licensed under theMIT Licensefeel free to do whatever you want with it
Package: unixsocketcs
Unix Socket higher-level python libFramework of unix socket for creating a client-server pairHow to usePlease check thegithub pagefor this project.How to contributePlease check thegithub pagefor this project.Join thegitterLogisticsCode of conductFor details on ourcode of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning. For the versions available, see the tags on this repositoryAuthorsdorrywhale-Initial work-dorrywhaleSee also the list ofcontributorswho participated in this project.AcknowledgmentsSeeAcknowledgmentsLicenseThis project is licensed under the MIT License - see theLICENSE.mdfile for details
Package: unix-socket-server
Unix Socket ServerA single-threaded server for serving in-memory files via Unix sockets. No Requirements. just clone this repo and copyunix_socket_servermodule to the root of your project or install package using pip:pipinstallunix-socket-serverProblemImagine that we have a in-memory file in our Python application and we want to share this file with other apps or tools on the same host without writing it to disk.SolutionA lightweight solution to this problem is to use Unix socket communication for file sharing.Examples:Use a context manager that automatically manages the server lifecycle:fromunix_socket_serverimportUnixSocketServerContextwithUnixSocketServerContext(b'hello world','/tmp/file.sock')asserver:"""do stuff"""Or you can create and start the server manually.server=UnixSocketServer(b'Hello World')server.listen('/tmp/stream.socket')UnixSocketServerwrites file to response stream by default . but if your client needs http protocol you can use http handler like example below:fromunix_socket_serverimportUnixSocketServerContextwithopen('./file-exmaple.txt','rb')asf:"""UnixSocketServer also accepts readable io objects"""withUnixSocketServerContext(f,'/tmp/file.sock',handler='http')asserver:"""do stuffdummy example:transport = httpx.HTTPTransport(uds=server.uri)client = httpx.Client(transport=transport)response = client.get('http://any_path/')assert response.status_code == 200"""
Package: unix-time
unix-timeUnix timestamp made easy.fromunix_timeimport*now=ts_now()# 1568078625, 2019-09-10T01:23:45yesterday=ts_yesterday()# 1567987200, 2019-09-09T00:00:00today=ts_today()# 1568073600, 2019-09-10T00:00:00tomorrow=ts_tomorrow()# 1568160000, 2019-09-11T00:00:00fromdatetimeimportdatetimedt=datetime.fromisoformat('2019-09-10T01:23:45+00:00')date_plus_time=ts(dt)# 1568078625, 2019-09-10T01:23:45date_no_time=ts_date(dt)# 1568073600, 2019-09-10T00:00:00
Package: unixtodate
UnixToDatePython библиотека.ОглавлениеДля чего эта библиотека?ФункцииПримеры использованияДля чего эта библиотекаЧтобы посчитать, сколько дней прошло между заданным временем в UnixTimeStamp и сегоднешней датой (выдает количество прошедших дней и слово "день" с нужным окончанием)Работает на русском и на английскомФункцииВсе функции находятся в классеToDateКлассToDateпринимает параметры:timestamp(int) -время в timestamplang(str) (по умолчанию 'ru') - 'ru' или 'en' (язык в котором нужно вернуть "день" с соответствующим окончанием)get_count_days():Возвращает количество дней прошедших с заданной датыget_day_word():lang(str) (необязательно) - 'ru' или 'en' (язык в котором нужно вернуть "день" с соответствующим окончанием)Возвращает слово "день" с нужным окончаниемget_days_and_word():lang(str) (необязательно) - 'ru' или 'en' (язык в котором нужно вернуть "день" с соответствующим окончанием)Возвращает количество дней со словом "день"Примеры использованияfrom unixtodate import ToDate
n = ToDate(1664502002)
print(n.get_count_days())
# 31

print(n.get_day_word(lang='en'))
# days

print(n.get_days_and_word())
# 31 день
Package: unkey
unkeyA tool and pre-commit hook to automatically remove extra calls tokeys().Installationpip install unkeyAs a pre-commit hookSeepre-commitfor instructionsSample.pre-commit-config.yaml:-repo:https://github.com/mxr/unkeyrev:v0.0.1hooks:-id:unkeyOverviewSummaryIterating over a Python dictionary will iterate over its keys, so calls tokeys()are often not needed. Removing these calls keeps your code terser and
more readable.Excluding Codeunkeydoes not support an equivalent of flake8's# noqaor mypy's#type: ignoreto stop rewriting. Until this feature is available, use  an intermediate
variable to prevent rewriting.# will be rewrittenmin({1:2,3:4}.keys())# becomes min({1: 2, 3: 4})# will not be rewrittenkeys={1:2,3:4}.keys()min(keys)DisclaimerSince AST parsing does not always tell us the type of an object, there may be
false positives and  unsedsirable rewrites or bugs. With that said the tool is
designed to err on the side of not rewriting rather  than being very clever and
rewriting as much as possible. To exclude rewrite, see the above section. PRs
are always welcome to help out!FeaturesbuiltinsRewrites builtin calls that have iterable arguments# simple cases-min({1: 2, 3: 4}.keys())+min({1: 2, 3: 4})-min(d.keys())+min(d)-min(f().keys())+min(f())# more complex cases-min(d1().x.y(1, 2 ,3, (4, 5)).keys())+min(d1().x.y(1, 2, 3, (4, 5)))zipRewrites relevant arguments inzip()-zip(d.keys(), {}.keys(), f().keys(), [1, 2, 3])+zip(d, {}, f(), [1, 2, 3])map/filterRewrites relevant arguments inmapandfilter-map(lambda x: x*2, d.keys())+map(lambda x: x*2, d)-filter(None, d.keys())+filteR(None, d)inRewrites relevant comparisons usingin-if x in d.keys():+if x in d:passcomprehensionsRewrites relevant list/dict/set comprehensions and generator expressions-[x for x in d.keys()]+[x for x in d]-(x for x in d.keys())+(x for x in d)-{x for x in d.keys()}+{x for x in d}-{x: x for x in d.keys()}+{x: x for x in d}IterationRewrites iteration-for _ in d.keys(): pass+for _ in d: pass-for _ in {}.keys(): pass+for _ in {}: pass-for _ in f().keys(): pass+for _ in f(): passFor additional linting in this space check outflake8-comprehensions.AcknowledgementsThis tool would not be possible without guidance and tools fromAnthony
Sottile, specifically,pyupgradeandpre-commit.unkeyis heavily adapted from the former and code
is attributed wherever possible. Thank you!
Package: unkey.py
unkey.pyAn asynchronous Python SDK forunkey.dev.DocumentationStableDevelopmentInstallationPython version 3.8 or greater is required to use unkey.py.Stablepipinstall-Uunkey.pyDevelopmentpipinstall-Ugit+https://github.com/Jonxslays/unkey.pyFor more information on usingpip, check out thepip documentation.Exampleimportasyncioimportosimportunkeyasyncdefmain()->None:client=unkey.Client(api_key=os.environ["API_KEY"])awaitclient.start()result=awaitclient.keys.verify_key("prefix_123ABC",os.environ["API_ID"])ifresult.is_ok:data=result.unwrap()print(data.valid)print(data.owner_id)print(data.meta)print(data.error)else:print(result.unwrap_err())awaitclient.close()if__name__=="__main__":asyncio.run(main())What is unkey.devunkey.dev is a fully open source API key management solution. It allows you to create,
manage, and validate API keys for your applications users. You can even host it yourself,
that's the beauty of open source.If you're interested in learning more about the project, consider checking out any of these links:WebsiteAPI documentationGithub repositoryDiscord communityContributingunkey.py is open to contributions. Check out thecontributing guideto learn how.Licenseunkey.py is licensed under theGPLv3 License.
Package: unknowncode
UnknownCode Guide/CompendiumThis file is a list of all the information and commands in unknowncode.Arguments inBoldare required arguments.
Arguments inItalicsare optional argumentscustom_response(response_list,cap_sense,prompt)response_list is a list of (guess what?) allowed responses, anything you want a user to be able to reply with
Example:response_list = ["Sure","Yeah!"]cap_sense is wether you want it to be Case Sensitive. If True then it will be Case Sensitive.
prompt is any string that you want the user to respond to
Example:prompt = "Are you ready to code?"yes_no(prompt)yes_no() is a preset version of custom_response_input, preset with a list of ["Yes","yes","Y","y"]. prompt is any string that you want the user to respond to Example:prompt = "Are you ready to code?"`
If the user respondses with anything that is Yes or Y (includng lowercase)UnknownCode Changelog 0.2.0 (Last version 0.1.0)Added:README.md
CHANGELOG.md
custom_response()UnknownCode Guide/Compendium(version 0.2.1)Arguments inBoldare required arguments.
Arguments inItalicsare optional argumentscustom_response(response_list,cap_sense,prompt)response_list is a list of (guess what?) allowed responses, anything you want a user to be able to reply with
Example:response_list = ["Sure","Yeah!"]cap_sense is wether you want it to be Case Sensitive. If True then it will be Case Sensitive.
prompt is any string that you want the user to respond to
Example:prompt = "Are you ready to code?"yes_no(prompt)yes_no() is a preset version of custom_response_input, preset with a list of ["Yes","yes","Y","y"]. prompt is any string that you want the user to respond to Example:prompt = "Are you ready to code?"`
If the user respondses with anything that is Yes or Y (includng lowercase)UnknownCode Changelog 0.2.1 (Last version 0.2.1)Added:README.md
CHANGELOG.md
custom_response()
Package: unknown-terms
unknown-numbersWhat does this repo do ?This repo allows you to create exponential terms using unknown numbers comfortably. You can do various math applications using this repository. Like binomial expansion, derivative, integral...How do you install this package ?pip install unknown-termsHow do you use ?fromunknown_terms.alpha_termimport*# In this way, you can use every class on the package.Quick Note: If you don't want this project as a
package you had to change this lines in alpha_term.pyfrom.multiple_alpha_termimportMultipleAlphaTermfrom.printerimportTermPrintertofrommultiple_alpha_termimportMultipleAlphaTermfromprinterimportTermPrinterAlphaTerm classYou can create a term with a single unknown.term1=AlphaTerm(2,"x",3)# Created AlphaTerm objectterm2=AlphaTerm(3,"y",2)term3=AlphaTerm(0,"z",2)term4=AlphaTerm(3,"t",0)term5=AlphaTerm(0,"a",0)term6=AlphaTerm()# AlphaTerm(1, "x", 1)# METHODSprint(term1,term5,term4,sep=" , ")# prints irregular term -> 2.0x³ , 0.0a⁰ , 3.0t⁰# TermPrinter.print method returns regular termprint(TermPrinter.print(term1))# 2x³print(TermPrinter.print(term5))# (nothing)print(TermPrinter.print(term4))# 3t# Multiplicationmterm=term1*term2print(mterm)# 6.0x³y² -> This is a MultipleAlphaTerm objectprint(TermPrinter.print(mterm))# 6x³y²# Divisionmterm=term2/term4print(mterm)# 1.0y²t⁰print(TermPrinter.print(mterm))# y²# Exponentiationnew_term=term2**2print(new_term)# prints 9y⁴# Turn to knownnumber=term1.turn_to_known(value=5)print(number)#prints 250NOT: Operations such as exponentiation, division, multiplication can also be applied to objects in the MultipleAlpaTerm class.
Package: unleaky
UnleakyA Simple Cli Password ManagerUnleaky is a simple Cli password manager that stores all your passwords in a database file.
Unleaky can be installed with pip but the recommended way to use it is either downloading the raw script or using the handy executable provided in thegithubpage.
You can use Unleaky with many handy commands.read - View all the passwordsnew - Add a new entryupdate - update an Entryclear - Clear the screenquit - securely quit the application by clearing the screenadmin - to change the master passwordThe Default Master Password is 'HelloWorld'.
Once you login in for the first time, command the action admin and change the Master Password.
It is recommended to use the quit option to quit Unleaky becuase it clears the screen of all the passwords printed in the terminal.Warning: Unleaky is very secure to store passwords but I don't recommend this for actulal use.
Just use it for fun and not very important accounts.
Author : NoobScience
Github :https://github.com/newtoallofthis123/unleakyAuthor Website :https://newtoallofthis123.github.io/AboutHope You Enjoy Using It
Package: unleash
unleashhandles the boring details of cutting from your Python package areleaseand publishing it. It assists you by updating version numbers,
making sure the documentation builds, reminding you that you still need to
include a LICENSE file and other things.Once a release is made, it gets tagged in your git repository. unleash features
apublishaction to push the new tag to github.com and/or upload your
package toPyPIUnleash always works with commits instead of files in your working copy to
ensure all your release are fully committed. It creates temporary checkouts or
verifies directly from the commit’s tree. Never again will you have a bad
release because you forgot to check-in that crucial file.Examples$unleash--dry-runreleaseUpdatingsetup.pyandpackageversion(0.6.0)Updatingdocumentationversion(now0.6.0)MarkingreleaseasreleasedbyunleashCheckingdocumentationbuildscleanlyVerifyingreleasecangeneratesourcedistributionVerifyingreleasecaninstallintoavirtualenvRunningtoxtestsUpdatingsetup.pyandpackageversion(0.6.1.dev1)Updatingdocumentationversion(now0.6.1.dev1)Notsavingcreatedcommits.Dry-runsuccessful.Note the--dry-runoption which means that no alterations will be made to
your repository. Otherwise, unleash will prompt you to confirm to create a new
tag0.6.0for the release and will offer to advance your current branch to
the next commit, in which all version numbers have been increase.$unleash--dry-runpublishTo be written.Other featuresunleashuses a plugin-based architecture for all of its operations, this
means it is fairly easy to add custom checks and steps for releases or
publications if you desire so.See the documentation athttp://pythonhosted.org/unleashfor details.
Package: unleash-client
unleash-client-python=====================Unleash is a feature toggle system with a good design and simple API.This is a Python client library for that system, for use in applications andservices. It seems to work well enough, but there's are a number of issues,consider it alpha for now.The main project is at https://github.com/Unleash/unleash.Overview--------Client for the Unleash feature toggle serviceInstallation / Usage--------------------<!--To install use pip:$ pip install unleash-client-->To clone the repo:$ git clone https://github.com/aes/unleash-client-python.git$ python setup.py installCLI tool--------To ask a specific feature test:$ python -m unleash_client feature.name user_id=blehTo try the demo cli tool$ python -m unleash_client --demo --sleep 0.05 feature.name user_id=%Contributing------------TBDExample-------TBDSee License.txt for Apache License v2.0Copyright (c) 2017 Anders Eurenius
Package: unleash-django-util
unleash-djangoThis library is a wrapper for Unleash.io'spythonIt can wrap views and methods to run if only feature is enabled and return a fallback function
otherwise.Installation$pipinstallunleash-django-utilSetting:set following values in your settings:* UNLEASH_API_TOKEN = 'your project token',default is 'default:development. unleash-insecure-api-token'
* UNLEASH_URL = 'the project url', default is 'https://app.unleash-hosted.com/demo/api/'
* UNLEASH_APP_NAME = 'the app name', default is 'miare'Use in Test Env:setUNLEASH_FAKE_INITIALIZE = Truein settings if no initialization is needed. By doing so no request is sent to Unleash server, neither for fetching flag status nor submitting metrics.Wrappers:Using view wrapper:fromunleash_django.decorators.view_flagimportview_flagdeffallback_func(self):"""some code goes here"""@view_flag('feature_name',fallback_func)defget(self):"""some code here"""Using method wrapper:fromunleash_django.decorators.method_flagimportmethod_flagdeffallback_func():""" some code goes here """@method_flag('feature_name',user_id=123)defmethod():""" some code goes here """if a method feature flag is going to have a user based strategy,user_idshould be providedMethods:is_enabled:fromunleash_django.api.methodimportis_enabledis_enabled('feature_name',context={'userId':'123'})if feature flag is on,Truewill be returned, otherwiseFalseunlessdefaultis set toTrue.get_variant:fromunleash_django.api.methodimportget_variantget_variant('feature_name',context={'userId':'123'})the result should be like:{"name":"variant1","payload":{"type":"string","value":"val1"},"enabled":True}with_feature_flag:fromunleash_django.api.methodimportwith_feature_flagdefenabled_func():"""some code goes here"""defdisabled_func():"""some code goes here"""with_feature_flag('feature_name',enabled_function=enabled_func,disabled_function=disabled_func)It runsenabled_functionif feature is on, otherwisedisabled_functionunlessdefaultvalue is set toTrueit is possible to pass functions with args and kwargs using tuple, dict orFlagFunctionChange Log0.4.4add a variable for fake initialization0.4.3set level of logging0.4.1addedget_variantfunction
Package: unleashed-py
Python package to connect to the Unleashed Software inventory management APIUsageInstantiate a Resource objectresource = Resource(resource_name, auth_id, auth_sig,  api_add, **kwargs)resource_name will be whichever of the unleashed features you want to extract from the API: Attribute Sets, Bill Of Materials, etc.where your auth_id, and auth_signature are handed out by Unleashed SoftwareThe api_add is the address to connect to the Unleashed API. Typicallyhttps://api.unleashedsoftware.com, but that is subject to changeThe keyword arguments are any of the filters that are available for each particular resource.For full details about potential resources, and available keyword filter arguments see the unleashed api documentation:https://apidocs.unleashedsoftware.com/The EditableResource class has a single function for posting information back to the API.I recommend examining the API docs fully before attempting to upload an object.Installationpip install unleashed-pyRequirementsrequests, hmac, hashlib, base64, json, re, & datetimeCompatibilityBuilt on python 3.7.3LicenceMITAuthorsunleashed-pywas written byJonathan Mucha.
Package: unlicense-text
Installation$pipinstallunlicense-text$npminstall-gunlicense-textExamples$unlicense-text>UNLICENSEThis is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

For more information, please refer to <http://unlicense.org/>Linkshttps://unlicense.org
Package: unlimited-machine-translator
Unlimited Machine TranslatorIntroducing the Unlimited Machine Translator, a Python package that enables you to translate all your data frames and doc files without restrictions! This powerful tool is designed for translating large datasets using the Google Translate API and is powered by the deep-translator library. The unlimited_machine_translation package offers automatic language detection, ensuring accurate translations for your content. Additionally, it removes translation limits by processing data in batches, making it an ideal solution for handling extensive data sets.InstallationTo install the Unlimited Machine Translator, run the following commandsInstall from PyPI:pipinstallunlimited-machine-translatorInstall the development version directly from the GitHub repository:pipinstallgit+https://github.com/Axel-Vs/unlimited_machine_translator.gitFeaturesTranslate entire data frames with easeSupports multiple translation APIsHandles API limitations and restrictions by translating data in batchesAutomatic language detectionEasily extendable to support new translation servicesUsageAfter installing the package, you can use it in your Python scripts or Jupyter notebooks like this:Data Frame Translation Exampleimportosimportpandasaspdfromdeep_translatorimportGoogleTranslatorfromunlimited_machine_translator.translatorimportmachine_translator_df# Load your datasetdata=pd.read_csv("your_dataset.csv")# Translate the desired columntranslated_data=machine_translator_df(data_set=data,column_name="text_column",target_language="en",source_language='auto',Translator=GoogleTranslator,current_wd=os.getcwd())# Save the translated datatranslated_data.to_csv("translated_dataset.csv",index=False)Document Translation Exampleimportosfromdeep_translatorimportGoogleTranslatorfromunlimited_machine_translator.translatorimport(read_word_document,machine_translator_doc,save_text_to_docx)# Load your texttext=read_word_document(os.getcwd(),"your_book.docx")# Translate the informationtranslated_text=machine_translator_doc(text,target_language='es',source_language='auto',Translator=GoogleTranslator,current_wd=os.getcwd())# Store the translationsave_text_to_docx(os.getcwd(),translated_text,"translated_book.docx")For additional examples and use cases, please refer to the "test_codes" directory in the repository.Supported Translation APIsCurrently, the Unlimited Machine Translator primarily supports Google Translate API. In the future, it will be extended to support other translation services, such as:DeepL TranslatorMicrosoft TranslatorYandex.TranslateContributionsContributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue on thehttps://github.com/Axel-Vs/unlimited_machine_translator.LicenseThis project is licensed under the MIT License. For more information, see the LICENSE file.