Saravanan666/pypi-org huggingface dataset:
Package: easyTypeWriter
easyTypeWriter moduleThis module lets you quickly add type writer sound effect for inputs to your python projectMain Users :Jarvis - command line personal assistant for windows , linux and mac.click here to visit jarvis website100's of little school projectinstall module using pip commandpipinstalleasytypeWriterexternal dependencies required :playsound moduleInstall via -pipinstallplaysoundTo import in project -fromeasyTypeWriterimporttypeWriterThen make a object instance of EasyInput classobj=typeWriter.EasyInput()Now set the paths to sound effect -obj.setEnterAudioPath("ding3.wav path here")obj.setKeyboardAudioPath("keysound.wav path here")You can get sound effects from hereEnter key sound effect -click here to directly download. If this does not work then download it fromgithub pagekeyboard key sound effect -click here to directly download. If this does not work then download it fromgithub pageNow just call the takeInput() method :x=obj.takeInput(makeSound=True,messagePrompt="",toNextLineOnEnter=True,toReturn=False)Above function returns the string that is inputted by the user to xNow it accepts three aruguments all of which as some default value also :makeSound - accepts a bool value whether it make a type writer sound or not , remember - it slows down keyboard input , so if someone as fast typing then they may struggle. By default it is True .message promt - accepts a string value for making a prompt for asking user for input like normal input message prompt. By default it is emptyinput("here is the message")toNextLineOnEnter - accets a bool value , if set to true , then it make a line when a enter is pressed , just like normal input fucntion . by default it is also set to truetoReturn - this module can return the everycharacter that the user enters without even pressing enter. By default it is FalseOther methods -All methods are called automatically by start_fileShare() method.obj.setTabSpaceValue(port) - to set a custom value for how many spaces should a tab consist of . By default it is setted to 4Sample program -fromeasyTypeWriterimporttypeWriterobj=typeWriter.EasyInput()# setting audio files paths - you can get them from here# Enter key sound effect -# link - https://drive.google.com/uc?export=download&id=1mN_-vyRsHWK8qsHP16ktL9G0XX3RCbB9 . If the file is not available to download then you can download the file from here - https://github.com/harshnative/easyTypeWriter_module_python/tree/master/easyTypeWriter# keyboard key sound effect# link - https://drive.google.com/uc?export=download&id=1qGSaacUgs6MEoI18W0uQOTq5yYSwo_Iv . If the file is not available to download then you can download the file from here - https://github.com/harshnative/easyTypeWriter_module_python/tree/master/easyTypeWriterobj.setEnterAudioPath("C:/users/UserName/desktop/ding3.wav")obj.setKeyboardAudioPath("C:/users/UserName/desktop/keysound30.wav")x=obj.takeInput(True,"input : ")print(x)# output -# input : 123# 123Contibute -Post any issues on githubCheck out code on github
Package: easy-udp
Easy UDPEasy UDP is a Python package that simplifies UDP communication. It provides convenient classes for UDP Sender and Receiver implementations.Installationpipinstalleasy-udpUsageUDP Senderfromeasy_udpimportUDPSenderimportnumpyasnp# Create UDP sender instanceudp_sender=UDPSender(host="localhost",port=12345)# Sending dataprint("Sending: 123")udp_sender.send(123)print("Sending: Hello, World!")udp_sender.send("Hello, World!")img=np.random.randint(0,255,(1280,720,3),dtype=np.uint8)print("Sending: img",img)udp_sender.send(img)UDP Receiverfromeasy_udpimportUDPReceiverimportnumpyasnp# Create UDP receiver instanceudp_receiver=UDPReceiver(host="localhost",port=12345)# receive datawhileTrue:received_data=udp_receiver.receive()ifreceived_dataisnotNone:ifisinstance(received_data,np.ndarray):received_data=received_data.reshape((1280,720,3))print("Received: img",received_data)ifisinstance(received_data,str):print("Received: str",received_data)ifisinstance(received_data,int):print("Received: int",received_data)
Package: easyui
django项目，使用easyui，动态菜单的项目Quict startpip install easyuiAdd “easyui” to your INSTALLED_APPS setting like this:INSTALLED_APPS = (
    ...
    'polls',
)Include the easyui URLconf in your project urls.py like this:url(r'^easyui/', include('easyui.urls', namespace='easyui')),Runpython manage.py migrateto create the polls models.Visithttp://127.0.0.1:8000/easyui/menu/to see the base menu.
Package: easyunicornpkg
easyunicornpkgeasyunicornpkg is a command-line tool for generating a package table forunicornpkgfrom a URL.Out of the box, this supports the following providers:GitHub repositoriesGitLab repositoriesPastebin pastesGitHub GistsGeneric raw URLsDownloadeasyunicornpkg.pyand execute it on the command-line withpython3 ./easyunicornpkg.py --help.MaintainerThis script is maintained by@Commandcracker. Any questions related to this script should be directed to him.
Package: easy-up
EasyUpEasy Way to update your installed tools on osonly support windows and download from GitHub onlyCommandgithubOptionOptions:-l,--repo-urlTEXTGithubRepositoryPath{OWNER}/{REPO_NAME}--extTEXTSelectCustomExtension--helpUsageeasy-upgithub[OPTIONS]ContributeSetup ENVclone repohttps://github.com/islam-kamel/package_manager.gitinstallpython 3recommendation 3.10 or higherinstallbuildcommandpip install buildinstall requirements fromrequirements.txtcreate buildpython -m buildinstall local packagepip install dist/{PACKAGE_NAEM}.tar.gznow run command 'easy-up'push your code in new branch e.gFixbug
Package: easyuri
easyuriis a dumb URL parser with a smart interface.>>> import easyuri
>>> uri = easyuri.parse("en.wikipedia.org/wiki/Jabberwocky")
>>> uri.is_secure, uri.in_hsts
(True, True)
>>> uri.scheme, uri.host, uri.port
('https', 'en.wikipedia.org', 443)
>>> uri.subdomain, uri.domain, uri.suffix, uri.path
('en', 'wikipedia', 'org', 'wiki/Jabberwocky')
>>> str(uri)
'https://en.wikipedia.org/wiki/Jabberwocky'

>>> uri = easyuri.parse("http://evil.com\\@good.com/")  # doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
DifficultURLError
Package: easy-user-input
easy-user-inputMiscellaneous python3 methods for collecting input from usersIncludes the following methods:inputYesNofor a boolean responseinputChoicefor selecting one option from a list of severalinputStrictStringfor a string response containing only allowed charactersinputPathfor a file or directory path, with several options on how to treat existing filesLinksPyPI:https://pypi.org/project/easy-user-input/GitHub:https://github.com/generic-user1/easy-user-input
Package: easy-utils
Functions I've used accross multiple projects, more info in this README to come#alert(alarm, x) counts down from x and prints int x and a string alarm to console

alert('Till countdown', 10)

#check_dir(child, parent) looks for a child directory in a parent directly, if there is no child dir then one is created 

check_dir('log', '~')

#check_file(fname, file_dest) ensures that a file is not in a directory, if it is not in the directory then the a path is provided for file creation 

check_file('somefile.txt', '~/projects')

#log_it(text, dest_dir) takes in string text and a string file destination folderand creates a file named with timestamp

log_it('this is a test', './log/')

#run_in_background(args) takes in a string shell command and runs it as a background process
 run_in_background('firefox')

#limit_proc(proc,limit) takes in a string process name and an int limit, limit represents a threshold of a certain process. If limit is reached then a simple spinlock activates and activly waits until the process count is no longer at the limit

limit_proc('curl', 5)

#kill_proc(proc) takes in a string process name and kills processes with that name

kill_proc('curl')
Package: easyvalidate
easyvalidateA Python package containing utilities for different types of validations:Validation of typesValidation of values based on various conditionsInstallationYou can install the package from PyPI using pip:$ pip install easyvalidateFeature HighlightsTypehint ValidationThe package contains a decorator:validate_types(). Add it to any
function you want to validate types for, but make sure you have type hints
on your function:importtypingfromeasyvalidateimportvalidate_typehints@validate_typehints()deffoo(x:int,y:typing.Union[int,str]):print(x,y)foo(5,10)# worksfoo(5,'hello!')# also worksfoo(5,[])# error!The decorator comes with a few arguments:all: bool = True: whether to require that all arguments (exceptself) are type-hinted. It's enabled by default.deep: bool = False: whether to recursively validate all members of collections passed to the function. This can be painfully slow on large datasets so it's disabled by default.
Package: easy-validator
Easy JSON ValidatorDescriptionA python package for deep json validation easy to use and well explainedInstallpip install easy-validatorUsage exampleSuccess CasefromeasyvalidatorimportJsonValidatorsource={"name":"My Name","birth":"2000-01-01","salary":1000}# your jsontemplate={"name":["NotNull"]}# what you want to testvalidator=JsonValidator(template=template,source=source)result=validator.validate()print(f"result:{result}")# result: {'name': {'value': "My Name", 'rules': ['NotNull'], 'validations': {'NotNull': {'status': 'OK'}}}}Fail CasefromeasyvalidatorimportJsonValidatorsource={"name":null,"birth":"2000-01-01","salary":1000}# your jsontemplate={"name":["NotNull"]}# what you want to testvalidator=JsonValidator(template=template,source=source)result=validator.validate()print(f"result:{result}")# result: {'name': {'value': "My Name", 'rules': ['NotNull'], 'validations': {'NotNull': {'status': 'FAIL', 'msg': 'Field can not be null'}}}}More Complex Case with deep field validationfromeasyvalidatorimportJsonValidatorsource={"name":"My Name","birth":"2000-01-01","salary":1000,"address":{"details":"number":13}}# your jsontemplate={"address":{"details":"number":["GreaterThan(value=12)","IsBetween(start=10, end=20)"]}}# what you want to testvalidator=JsonValidator(template=template,source=source)result=validator.validate()print(f"result:{result}")# result: {"address": {"details": "number": {'value': 13, 'rules': ['GreaterThan(value=12)', 'IsBetween(start=10, end=20)'], 'validations': {'GreaterThan(value=12)': {'status': 'OK'}, IsBetween(start=10, end=20)': {'status': 'OK'}}}}Available RulesNotNullNotEmptyIsEmptyNotEquals(value=VALUE)IsBetween(start=NUMERICAL VALUE, end=NUMERICAL VALUE)IsNotBetween(start=NUMERICAL VALUE, end=NUMERICAL VALUE)DateIsAfter(date=YYYY-mm-dd)DateIsBefore(date=YYYY-mm-dd)DateIsExactly(date=YYYY-mm-dd)GreaterThan(value=NUMERICAL VALUE)LessThan(value=NUMERICAL VALUE)LessThanOrEqual(value=NUMERICAL VALUE)GreaterThanOrEqual(value=NUMERICAL VALUE)TextEquals(value=VALUE)TextContains(value=VALUE)TextNotContains(value=VALUE)TextStartsWith(value=VALUE)TextEndsWith(value=VALUE)Source CodeeasyvalidatorAuthor2020 brworkit.
Package: easyvalid-data-validator
InstallationYou can install it directly from PyPihttps://pypi.org/project/easyvalid-data-validator/pipinstalleasyvalid-data-validatorTestsAll functions are fully testedYou are able to run tests on your own cloning repo and using it's environment:git clone https://github.com/DSmolke/EASYVALID_DATA_VALIDATOR.git
  cd EASYVALID_DATA_VALIDATORpoetry:poetryupdatepoetryshellpoetryrunpython-munittestdiscover-vor:poetryrunpytest-vvpipenv:pipenvshellpipenvrunpython-munittestdiscover-vor:pipenvrunpytest-vvpip:python-munittestdiscover-vor:pipinstallpytestpytest-vveasyvalid-data-validatorIt's a package developed mainly for validation of json dict that is created by using json.load().Here is an example of json dict, that has name, age, and balance.user = {
    "name": "ADAM",
    "age": 18,
    "balance": "2000.00"
}We want to validate if:name contain only uppercase letters,age is greater or equal to 18,balance is valid for Decimal conversionWe need to prepare constraint dict which describes this rules as explained:constraints = {
    "key_name1": {<ConstraintEnumObject>: *args},
    "key_name2": {<ConstraintEnumObject>: *args},
    "key_name3": {<ConstraintEnumObject>: *args}
}So we create dict that stores dicts containing Constraint Objects as key that are indicators for validator of which case it's currently working on, and what datachecker it should use.
Value should be arguments that datachecker need:Constraint Object - Enum objectdatachecker - function that takes needed arguments and returns True or False if condition is machedvalidator - validator function that raises error when any of value is not valid, or returns data when it's validfrom easyvalid_data_validator.constraints import Constraint

constraints = {
    "name": {Constraint.STRING_REGEX: r'^[A-Z]+$'},
    "age": {Constraint.INT_GE: 18},
    "balance": {Constraint.STRING_IS_DECIMAL: None}
}Validation is very easy now, we just need to provide validate_json_data() with json_data, and constraints:from easyvalid_data_validator.validator import validate_json_data

result = validate_json_data(user, constraints)

# result --> {"name": "ADAM", "age": 18, "balance": "2000.00"}If we would change age of user to 17, validator would throw an error:ValidationError("age": ["Invalid integer expression - isn't grater or equal to compare value"])Documentation linkClick to read documentation
Package: easy-vault
OverviewTheeasy-vaultPython package provides commands for encrypting and
decrypting vault files that can be in any format. It provides for programmatic
access to encrypted vault files from Python programs, so that the file itself
can stay encrypted in the file system but can still be used by the program in
clear text.At first use on a particular vault file, the encryption command prompts for a
vault password and stores that in the keyring service of your local system
using thekeyring package. Subsequent encryption and decryption of the vault
file will then use the password from the keyring, avoiding any further password
prompts. Programmatic access can also be done with the password from the
keyring.The encryption of the vault files is implemented using the symmetric key
functionality of thecryptography package.One use case for this package is for example the daily work with programs that
need the secrets from a vault to access some server or service. For that, the
program in question needs to have integrated with this package.Another use case is testing in CI/CD systems: The encrypted vault file is
stored in a repository and the password to access it is put as a secret into
the CI/CD system (most CI/CD systems these days support storing secrets in a
secure way). The test program uses the vault password from the CI/CD secret to
get access to the vault to get to the secrets that are needed to perform the
tests. One could have put the vault secrets directly into the CI/CD system, but
if the vault file is also used for local work, or if the number of secrets is
large or has a complex structure, it is better to have the indirection of the
vault file.The vault files stay encrypted in the file system while they are used, and are
only decrypted and re-encrypted in the file system when secrets need to be
updated/added/removed.This package allows putting at rest the habit of having clear text files that
contain passwords, API keys and other secrets, and allows transitioning to a
secure but still easy to use approach for managing such secrets.Why a new vault implementation: The ansible-vault command provided the
functionality we needed and was originally used (except for the keyring storage
which we added). However, Ansible does not support native Windows and that
was a requirement. Also, the ansible-vault command requires installing the
entire Ansible which is quite large. Searching Pypi for suitable vaults
that a) have commands for encrypting and decrypting and b) provide programmatic
access to the encrypted file, did not reveal anything suitable.Documentation and change logDocumentationChange logLicenseTheeasy-vaultpackage is provided under theApache Software License 2.0.
Package: easyvcf
EasyVCFConverts contacts' information in csv fileAdvantagesSaves a lot of time for userPrevents human-made errors Ex. Entering the wrong numberHow To InstallIn terminal:pip install easyvcfTo run:easyvcfHow To UseEnter csv filename (with .csv extension) which will be convertedEnter column numbers of contact informations'Enter keyword for contacts (makes easier to find contacts on mobile devices)Enter new vcf filename (WITHOUT .vcf extension) to export contactsInspired Bycharlax-csv2vcard
Package: easyvectors
This module makes working with vectors (or other tuple-ish things) much more convinient.It introduces a new datatype (actually a class) called Vector which is a lot like tuples.These vectors can contain from 1 to 4 dimensions (x, y, z, t) and these can be called and changed easily.The addition (and subtraction, multiplication and so on) of a vector, integer, float or list to another vector is as easy as working with integers and floats. See below, or example.py for examples. (example.py is far more detailed.)No more annoying iteration and inefficient code whilts working with tuples thanks to this module!>>> from vectors import *
>>> myvector = Vector(1,2,3)
>>>
>>> print(myvector)
(1, 2, 3)
>>> print(myvector.x)
1
>>> print(myvector[0])
1
>>> print(myvector.type)
'vector3'
>>> print(vtype(myvector))
'vector3'
>>>
>>> myvector += 1
(2, 3, 4)
>>>
>>> othervector = Vector(4, 5, 6)
>>>
>>> myvector + othervector
(6, 7, 10)
>>> myvector / [3, 2, 0.5]
(2, 3.5, 20)
>>>
>>> mytuple = unv(myvector)
>>> print(mytuple, type(mytuple))
(2, 3.5, 20), <class 'tuple'>
>>>
>>> myvec = Vector(mytuple)
>>>
>>> mymag = mag(myvec)
'returns magnitude'
>>> mynorm = normalized(myvec)
'returns normalized vector'
>>> print(myvec.positive())
'returns all-positive vector'
Package: easy-vk
easy_vkБиблиотека в стадии разработкиОглавлениеОсобенностиУстановка библиотекиПримеры использованияДля пользователейДля ботовПланы на будущееОсобенности:(клик по гифке для увеличения)Качественные подсказки:Подсказки, реагируют на содержание параметровУстановка библиотеки:pipinstalleasy_vkПримеры использованияДля пользователей# Пример получения времени на сервере VKfromeasy_vk.userimportUservk=User('YOUR ACCESS_TOKEN')server_time=vk.utils.get_server_time()print(server_time)# 1233432Для ботов:Пример использования# Пример простого Hello world бота# (Если боту приходит сообщение 'Hello', он отправит обратно сообщение 'world')importtimefromeasy_vk.botimportBotbot_access_token='BOT ACCESS TOKEN'group_id=123123bot=Bot(bot_access_token,group_id)@bot.handler.message_new(regexp='Hello')defresponse(message):bot.messages.send(user_id=message.message.from_id,message='world',random_id=time.time())bot.run()Пример реализации клавиатурыimporttimefromeasy_vk.botimportBotfromeasy_vk.bot.keyboardimportKeyboardkeyboard_template="""inline___||text|label::Текстовая кнопка||  ||open_link|link::https://vk.com/phinnik|label::Автор||||location||||text|label::Красная|color::negative||  ||text|label::Зеленая|color::positive||  ||text|label::Синяя|color::primary||"""keyboard=Keyboard.from_template(keyboard_template)bot=Bot(group_access_token,group_id)@bot.handler.message_new()defresponse(message):bot.messages.send(user_id=message.message.from_id,message='Клавиатура!',keyboard=keyboard.to_json(),random_id=time.time())bot.run()Планы на будущееТипизация данных VK APIТипизация ответов VK APIСоздание модуля для ботовСоздание модуля для парсинга данныхСоздание модуля базы данныхНаписание документацииЛогирование каждого модуляНаписание полезных утилит
Package: easy-vqa
easy-vqaThe official repository for the Easy Visual Question Answering (easy-VQA) dataset. Contains:the officialPython packagefor the datasetthe source code for generating the datasetReadthe easy-VQA blog postfor more.About the Dataseteasy-VQA contains4,000 train images and 38,575 train questions.1,000 test images and 9,673 test questions.13 total possible answers.28,407 training questions that are yes/no.7,136 testing questions that are yes/no.All images are 64x64 color images. See alive demoof a model trained on the dataset.Example Images(these image links above only work onGithub)Example QuestionsWhat color is the rectangle?Does the image contain a triangle?Is no blue shape present?What shape does the image contain?Installing the Packagepip install easy-vqaUsing the PackageQuestionsEach question has 3 parts:thequestion texttheanswertheimage IDThe question getters return correspondingarraysfor each of the 3 parts:fromeasy_vqaimportget_train_questions,get_test_questionstrain_questions,train_answers,train_image_ids=get_train_questions()test_questions,test_answers,test_image_ids=get_test_questions()# Question 0 is at index 0 for all 3 arrays:print(train_questions[0])# what shape does the image contain?print(train_answers[0])# circleprint(train_image_ids[0])# 0ImagesThe image path getters return dicts that mapimage IDtoabsolute pathsthat can be used to load the image.fromeasy_vqaimportget_train_image_paths,get_test_image_pathstrain_image_paths=get_train_image_paths()test_image_paths=get_test_image_paths()print(train_image_paths[0])# ends in easy_vqa/data/train/images/0.pngAnswersThe answers getter returns anarrayof all possible answers.fromeasy_vqaimportget_answersanswers=get_answers()print(answers)# ['teal', 'brown', 'black', 'gray', 'yes', 'blue', 'rectangle', 'yellow', 'triangle', 'red', 'circle', 'no', 'green']Generating the DatasetThe easy-VQA dataset was generated by runningpythongen_data/generate_data.pywhich writes to theeasy_vqa/data/directory. Be sure to install the dependencies for dataset generation runninggenerate_data.py:pipinstall-rgen_data/requirements.txtIf you want to generate a larger easy-VQA dataset, simply modify theNUM_TRAINandNUM_TESTconstants ingenerate_data.py. Otherwise, if you want to modify the dataset itself, the files and code in thegen_data/directory should be pretty self-explanatory.
Package: easyvvuq-qcgpj
EasyVVUQ-QCGPJ - Python API for HPC execution of EasyVVUQ (EQI)EasyVVUQ-QCGPJ (EQI) is a lightweight plugin for parallelization ofEasyVVUQwithQCG-PilotJob.It is a part of theVECMA Toolkit.The tool provides API that can be effortlessly integrated into typical EasyVVUQ workflows to enable parallel processing
of demanding operations, in particular the simulation model's executions and encodings.
It works regardless if you run your use-case on multi-core laptop or on large HPC machine.RequirementsThe software requires Python 3.6+ for usage.Moreover, since EasyVVUQ-QCGPJ is a wrapper over EasyVVUQ and QCG-PilotJob, you need to have
both these packages available in your environment. This version of the library is compatible with
EasyVVUQ v0.8 and QCG-PilotJob v0.11.0. Compatibility with other versions is not confirmed.
Thus, if you want to be sure that correct versions of required packages are available,
install them in the following way:$ pip3 install --force-reinstall easyvvuq==0.8
$ pip3 install --force-reinstall qcg-pilotjob==0.11.0InstallationThe software could be easily installed from the PyPi repository:$ pip3 install easyvvq-qcgpjAlternatively, if you want to use specific branch of the software,
you can get it from the the github repository. The procedure is quite typical, e.g.:$ git clone https://github.com/vecma-project/EasyVVUQ-QCGPJ.git
$ cd EasyVVUQ-QCGPJ
$ git checkout some_branch
$ pip3 install .Getting startedDocumentation is available athttps://easyvvuq-qcgpj.readthedocs.ioAuthorsBartosz Bosakbbosak@man.poznan.plPiotr Koptapkopta@man.poznan.plTomasz Piontekpiontek@man.poznan.plJalal Lakhlilijalal.lakhlili@ipp.mpg.de