Saravanan666/pypi-org huggingface dataset:
Package: pyshtrih
PyShtrihРеализация драйвера семейства ККМ “Штрих” на Python.СодержаниеУстановкаПоддерживаемое оборудованиеПример использованияПоддерживаемые командыЛицензияУстановка$ pip install pyshtrihПоддерживаемое оборудованиеШТРИХ-ФР-КШТРИХ-ФР-ПТКШТРИХ-КОМБО-ФР-КШТРИХ-ПТКШТРИХ-LIGHT-ПТКШТРИХ-950КШТРИХ-ФР-01ФШТРИХ-ON-LINEШТРИХ-М-01ФШТРИХ-М-02ФШТРИХ-ЛАЙТ-01ФШТРИХ-ЛАЙТ-02ФШТРИХ-МИНИ-01ФРИТЕЙЛ-01ФПример использованияimportpyshtrihdefdiscovery_callback(port,baudrate):printport,baudrateif__name__=='__main__':devices=pyshtrih.discovery(discovery_callback)ifnotdevices:raiseException(u'Устройства не найдены')# для простоты примера, предположим, что подключена только одна ККМdevice=devices[0]device.connect()printdevice.model()printdevice.full_state()device.open_check(0)device.sale((u'Позиция 1',1000,1000),tax1=1)device.sale((u'Позиция 2',1000,2000),tax1=2)device.sale((u'Позиция 3',1000,3000),tax1=3)device.sale((u'Позиция 4',1000,4000),tax1=4)device.close_check(10000)device.cut(True)device.disconnect()Поддерживаемые командыВнимание!Набор команд зависит от конкретной модели оборудования.КодНазвание0x10Короткий запрос состояния ФР0x11Запрос состояния ФР0x13Гудок0x14Установка параметров обмена0x15Чтение параметров обмена0x16Технологическое обнуление0x17Печать строки0x19Тестовый прогон0x1AЗапрос денежного регистра0x1BЗапрос операционного регистра0x1EЗапись таблицы0x1FЧтение таблицы0x21Программирование времени0x22Программирование даты0x23Подтверждение программирования даты0x25Отрезка чека0x28Открыть денежный ящик0x29Протяжка0x2BПрерывание тестового прогона0x2DЗапрос структуры таблицы0x2EЗапрос структуры поля0x40Суточный отчет без гашения0x41Суточный отчет с гашением0x50Внесение0x51Выплата0x80Продажа0x82Возврат продажи0x85Закрытие чека0x86Скидка0x87Надбавка0x88Аннулирование чека0x8CПовтор документа0x8DОткрыть чек0xA0Отчет ЭКЛЗ по отделам в заданном диапазоне дат0xA2Отчет ЭКЛЗ по закрытиям смен в заданном диапазоне дат0xB0Продолжение печати0xC0Загрузка графики0xC1Печать графики0xC2Печать штрих-кода0xE0Открыть смену0xFCПолучить тип устройства0xFF01Запрос статуса ФН0xFF03Запрос срока действия ФН0xFF08Отменить документ в ФН0xFF0AНайти фискальный документ по номеру0xFF0BОткрыть смену в ФН0xFF0CПередать произвольную TLV структуру0xFF35Начать формирование чека коррекции0xFF36Сформировать чек коррекции0xFF38Сформировать отчёт о состоянии расчётов0xFF39Получить статус информационного обмена0xFF3FЗапрос количества ФД на которые нет квитанции0xFF40Запрос параметров текущей смены0xFF41Начать открытие смены0xFF42Начать закрытие смены0xFF43Закрыть смену в ФНЛицензияMIT лицензия. Подробнее в файлеLICENSE.
Package: pyshuii
Rarity Scannereth:0xbA842b7DA417Ba762D75e8F99e11c2980a8F8051ens:prathik.xyzAggregate metadata info on NFT collectionsAccuracy on par w/ legitimate tools afaik (May now have changed with the release of OpenRarity)Notice(s)Usingpoetryfor package management.UsingSmartProxyfor proxies.descriptionGathering info on collection, weighing rarities, and spitting into json fileCurrently supports collections on Ethereum and CosmosCurrently supports on-chain metadata, single-file metadata, multi-file metadatahow-tosampleimportjsonfrompyshuii.retrieversimporterc721,cw721creds={}creds['ALCHEMY_API_KEY']=''client_mappings={'EVM':erc721,'CW':cw721}proxies=open('proxies.txt','r').read()defmain(event):try:if(event['network']=='EVM'):cli=client_mappings[event['network']](alchemy_api_key=creds.get('ALCHEMY_API_KEY'),max_retries=100,proxies=proxies)elif(event['network']=='CW'):cli=client_mappings[event['network']](max_retries=100,proxies=proxies)results=cli.run(event['chain'],event['address'])withopen("%s.json"%(results['project_name'].lower().replace(" ","_")),"w")asdumped:dumped.write(json.dumps(results))return'{}s'.format(results['time_to_sync'])exceptExceptionase:print(e)raisee# main(#     event={#         "network": "CW",#         "chain": "JUNO-1",#         "address": "juno1za0uemnhzwkjrqwguy34w45mqdlzfm9hl4s5gp5jtc0e4xvkrwjs6s2rt4"#     })# main(#     event={#         "network": "CW",#         "chain": "JUNO-1",#         "address": "juno1e229el8t4lu4rx7xeekc77zspxa2gz732ld0e6a5q0sr0l3gm78stuvc5g"#     })# main(#     event={#         "network": "CW",#         "chain": "STARGAZE-1",#         "address": "stars1rz8jkes33jxqf79t707s68yary3969faqfz59lvwnxjy4j65q7es62j098"#     })main(event={"network":"EVM","chain":"ETH","address":"0x0e32cee0445413e118b14d02e0409303d338487a"})whats leftcontainerizepoetry shell alternativeimprove efficiencywork around brute force retry methodCW single threadedmore chains?better docspython3setup.pyinstallpython3-mtwineupload--repositorypypidist/*to dogithub workflow for package publishing & layer uploading
Package: pyshuttle
ShuttleShuttle is a python library forÂ cross-chain atomic swaps betweenÂ the networksÂ ofÂ twoÂ cryptocurrencies. Cross-chain atomic swaps are the cheapest and most secure way to swapÂ cryptocurrencies. Itâ€™s a brand new decentralized payment environment based on Hash Time Lock Contracts (HTLCs) protocol.DocumentationAvailable CryptocurrenciesShuttle has the following available cryptocurrencies to swap:CryptocurrenciesMainnetTestnetSolonetBitcoinBTCYesYesNoneBytomBTM,AssetsYesNoNoDependenciesbytom-wallet-desktop- version1.1.0or greater.pip- To install packages from the Python Package Index and other indexes.python3version 3.6 or greater.InstallationPIP to install shuttle globally. For Linux sudo may be required.$ pip install pyshuttleFor the versions available, see thetags on this repository.DevelopmentWe welcome pull requests. To get started, just fork this repo, clone it locally, and run:$ pip install -e .[tests] -r requirements.txtTestingTests are still under development.You can run the tests with:$ pytestOr usetoxto run the complete suite against the full set of build targets, or pytest to run specific
tests against a specific version of Python.ContributingFeel free to open an issue if you find a problem, or a pull request if you've solved an issue.LicenseDistributed under theAGPL-3.0license. SeeLICENSEfor more information.
Package: pyshv
The implementation of serialized and deserializer for CPON and Chainpack as well
as implementation ofSilicon Heaven RPC.📃 Sources⁉️ Issue tracker📕 DocumentationInstallationThe installation can be done with package managerpip.$pipinstallpyshvRunning testsThis project contains tests in directorytests.Tests requireSHV applications.To run tests you have to usepytest. To run all tests just run it in the top
level directory of the project. See thepytest documentationfor more info.DocumentationThe documentation is stored indocsdirectory. You can build the latest
version from the source code using:$sphinx-build-bhtmldocsdocs-html
Package: pysi
Linksrepository:https://bitbucket.org/imbolc/pysi/russian docs:http://pysi.org/lab/pysi/Installation$ pip install pysiHello worldimport pysi

@pysi.view('/')
def home(rq):
    return 'Hello world!'

if __name__ == '__main__':
    from wsgiref.simple_server import make_server
    make_server('', 8000, pysi.App()).serve_forever()Another examplefrom pysi import cfg, view, redirect, abort
from models import Profile
from forms import ProfileForm

@view('/profile/<int:id>/edit/', 'profile/edit.html')
def edit(rq, id):
    obj = Profile.get(id)
    if not obj or obj.user != rq.user:
        abort(404)
    form = ProfileForm(rq.form)
    if rq.method == 'POST' and form.validate():
        form.populate_obj(obj)
        obj.save()
        rq.flash('Profile updated', 'success')
        return redirect('profile.edit')
    return {'form': form, 'post': post}
Package: pysia
PySiaSia API bindings for Python 2 & 3.This library is built using code-generation, to exactly match the endpoints, docs and responses maintained by Sia.  This library will not attempt to improve on, or resist, any API changes made upstream to siad.This version targets siad >= 1.2.2.Installpip install pysiaUsage>>>frompysiaimportSia>>>sc=Sia()# Optionally, pass host & port.  Defaults to localhost & 9980>>>consensus=sc.get_consensus()>>>consensus['height']108058backup_made=sc.get_wallet_backup(destination=r'd:\siadwallet.dat')print(backup_made)# Truebackup_made=sc.get_wallet_backup(destination=r'error causing input?@#$!`')print(backup_made)>>>{'message':'error when calling /wallet/backup: destination must be an absolute path'}print(sc.get_gateway())>>>{'peers':[{'netaddress':'92.253.172.90:9981','version':'0.5.2','inbound':False,'local':False},...]}>>>print(sc.set_gateway_connect('212.77.177.47:9981'))True>>>print(sc.set_gateway_disconnect('212.77.177.47:9981'))True>>>print(sc.set_gateway_disconnect('212.77.177.47:9981')){'message':'not connected to that node'}FeaturesExposes a method for each API endpoint of siad, matching Siad API docs 1-to-1User-friendly autocomplete (GET -> getters, POST -> setters)Pure python responsesUser-friendly key-words called out for url-parameters GET-methodsDonationsSia:2fd5ada234b5dba82584160213d8c9698d080bc4311277667a1ef38e5265fe7058aeeb627822LicenseFree software: MIT licenseDocumentationComing soon, here:Documentation:https://pysia.readthedocs.io.See AlsoThere are python 3 bindings for Sia, maintained by humans which might be or become more pythonic. Seesiapy.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.122.0 (2017-05-28)First code-gen produced version, targetting python 2 & 3 & siad 1.2.2
Package: py-sic
PY-SICEnglish|简体中文PY-SIC stands for "a simple image converter for Python". It could be seen as a simple wrapper of the popular Python imaging libraryPillow, but contains a patch for better GIF conversion quality, thanks tothe workaroundprovided by@egocarib. The idea of maintaining this repository comes from the process of refactoring the scripts in another repository of mine namedWeibo Emoji. The primary purpose is automation, as I found it time-consuming to convert images and keep the original file structure manually. In summary, PY-SIC can mainly help you with:Conversion tasks with an image or multiple images for many popular image formats(TODO: currently supports GIF and PNG in the alpha release)Customisation including but not limited to controlling the alpha threshold for converting images to GIF ones, showing the progress bar, keeping the file structure of the input directory, and specifying the output directory.Please note that the code is licensed underthe GPL-3.0 License.❗ ATTENTIONMay I have your attention pls? 🔥By 17 October 2021, everything looks good with PyCharm 2021.2.2 + Python 3.10.0. You could definitely use Visual Studio Code, but you might need to adjust the importing behaviour in some scripts to make them run correctly.PY-SIC should support Python 3.6+, and relies on the packages listed below. To build the package yourself, please refer tothe package requirements for this project.NameVersionPillow≥ 8.4.0tqdm≥ 4.62.2📜 DocsTODO: This part will have significant changes since PY-SIC is in its super alpha release.Installationpipinstallpy-sic# Use pip3 if required.Sample Usagefrompysic.engineimportSICfrompysic.errorsimportEmptyInputErrorfrompysic.pillow_gif_patchimportALPHA_THRESHOLDFAIL="Fail:"sic=SIC(has_pbar=True,# A flag indicating whether to show the progress bar or not.input_path="your/path/to/input"# The path to an input image or the directory for locating the input image(s).)try:sic.convert(alpha_threshold=ALPHA_THRESHOLD,# The threshold for the alpha channel.has_init_output=False,# A flag indicating if the output directory should be cleaned up first.has_input_structure=True,# A flag indicating if the file structure of the input directory should be kept.output_dir="your/path/to/output"# The output directory for the converted image(s).to_fmt=to_fmt# The target image format for conversion.)exceptEmptyInputErrorasempty_input:print(FAIL,empty_input)exceptFileExistsErrorasfile_exists:print(FAIL,file_exists)exceptFileNotFoundErrorasinput_not_found:print(FAIL,input_not_found)exceptValueErrorasvalue:print(FAIL,value)Hope you would find it useful! 💖
Package: pysicgl
pysicglpysicgl is a Python C extension interface for thesicglgraphics library.both projects are young and would benefit from community involvement.getting started as a developerget submodulesgitsubmoduleupdate--init--recursiveset up the python environmentremove any existing virtual environmentcreate a new virtual environmentactivate the virtual environmentinstall development dependenciesrm-rfvenv
python3-mvenvvenv# use your Python 3 interpretersourcevenv/bin/activate
pipinstall-rrequirements.dev.txtbuild and develop pysiclpythonsetup.pybuild
pythonsetup.pydeveloprun tests and installpython-mpytest
pythonsetup.pytestpythonsetup.pyinstallbuild and upload to pypiNote: this is how you can do it manually, but it is automated by github actions.gitcheckout<tag>
pythonsetup.pysdist
twineuploaddist/*

twineuploaddist/*--repository-urlhttps://test.pypi.org/legacy/# username: __token__# password: <token>twineupload--repositorytestpypidist/*# do a test uploadtwineuploaddist/*# do a real uploadformattingsource venv/bin/activate
./scripts/third-party/run-clang-format/run-clang-format.py -r include src
black .design choicescolor sequencescolor sequences are immutable. side effects are not allowed.
Package: pysickle
pysickle.pywill try to remove sequences that cause misalignments from a multiple sequence alignment (MSA). It reads a given MSA in multi-fasta format and removes sequences with the highest penalty scores, then builds the next MSA without those sequences. This process is repeated until a user-specified cuttoff is reached or less than three sequences are left to be aligned.Usage:######################################
# pysickle.py
######################################
usage:
    pysickle.py -f multifasta alignment
options:
    -f, --fasta=FILE    multifasta alignment (eg "align.fas")
    OR
    -F, --fasta_dir=DIR directory with multifasta files (needs -s SUFFIX)
    -s, --suffix=SUFFIX will try to work with files that end with SUFFIX
                        (eg ".fas")

    -a, --msa_tool=STR  supported: "mafft" [default:"mafft"]
    -i, --max_iterations=NUM    force stop after NUM iterations
    -n, --num_threads=NUM   max number of threads to be executed in
                            parallel [default: 1]

    -h, --help      prints thisCurrently supported multiple sequence aligners:mafft (Katoh, Standley 2013 (Molecular Biology and Evolution 30:772-780) MAFFT multiple sequence alignment software version 7: improvements in performance and usability.http://mafft.cbrc.jp/alignment/software/)RequirementsmatplotlibnumpyExternal Programsmafft
Package: pysicktim
PySICKTiM - A Python Library for the SICK TiM5xxIntroductionThis is a python library made to interact with the SICK TiM561 LiDAR sensor.PrerequisitespyusbInstallationfromPyPIpip3 install pysicktimfrom source:git clone https://github.com/ansarid/pysicktim
cd pysicktim
pip3 install -r requirements.txt
python3 setup.py install
Package: pysid
pysidThis is a python System Identification package, based on numpy and scipy, that
provides some tools for parametric identification of causal linear time-invariant systems.Supported methodsHere are the list of the implemented methodsLeast SquaresInstrumental VariablesPrediction Error methodDependenciesCurrently, this package is based on numpy. For this reason, the basic package dependencies are:NumpyScipyInstallationpip install pysid
Package: pyside2-vfx-template
PySide2 VFX TemplateCustom Python classes and utilities tailored for PySide2 built UI, in VFX-oriented DCC applications.Table of ContentsTable of ContentsAboutInstallationExampleDocumentationGalleryContactAboutCustom Python classes and utilities tailored for PySide2 built UI, in VFX-oriented DCC applications.Installationpipinstallpyside2-vfx-template[!IMPORTANT]
In order to have access to the module, make sure to addpyside2_vfx_templateto the$PYTHONPATHof the DCCs. For Houdini, you can find thehoudini_package file.ExampleAfter installing PySide2 VFX Template, you can run the demo:pythonexample.pyOr:frompyside2_vfx_templateimportexampleexample.main()Here's how it would like like launched from Houdini and launched as a standalone:DocumentationPlease read the full documentationhere.GallerySplash ScreenMain WindowContactProject Link:PySide2 VFX Template
Package: pyside6-live-coding
Live Coding Environment for Python, Qt and QMLThis project provides a live coding environment for Python and Qt. It supportsQt for Python (PySide6).If you need support Qt5 take a lookpython-qt-live-coding.See also:My blog post about Qt/QML live codingcpp-qt-live-coding: The C++ version of this project.Lightning Talk from QtDay.it 19InstallTo install the live coding environment run:pythonsetup.pyinstallor install it via pippipinstallpyside6-live-codingYou also need to install PySide6 for this application to work. The quickest way to achieve this is to use pip.pipinstallPySide6UseThe live coding environment comes with a live runner which enables your to live code Qt GUIs quickly.Run following to test drive the example:pyside6-live-codingexamplesYour will instantly see the example project in the live runner.Now you can either select theMainScreen.qmlfile or typeMainScreenin the filter.When you type, the file will be automatically selected.When loaded you will see following.This is the example GUI inside the live runner.Now press theEditbutton. Your favorite text editor should open promptly.Edit the code inside the editor und you will see the GUI updates instantly when you save the document.Integrate in your applicationAlternatively, you can integrate live coding into your Python Qt application.This especially useful if you want to customize the live coding GUI for your needs.For this purpose you need to do following things:Integrate thestart_live_codingfunction into yourmain.py.Add a command line argument for live coding.Optionally, add a customlive.qml.To learn more about how this works please take a look theintegratedexample.Python QML module supportThe live coding environment has built in support for Python QML modules.The idea is to place QML and Python code in the same directory, similar to how you would create a Qt/C++ application.
Additionally, with Python we have the advantage of being able to discover modules automatically.For this purpose addregister_qml_typesfunction to the__init__.pyof your Python QML module.
See the example inexamples/standalone/module/__init__.py.However, so far automatic reloading of Python code is not support.
When you work on a Python module please use theRestartbutton which restarts the live coding application instead.PyCharm SupportFor this application to work with PyCharm and other IntelliJ IDEs please disable the "safe write" feature.
The feature writes a temporary file before saving any file, which can confuse the file change watcher.
Package: pyside-app-core
pyside-app-coreCustom style, widgets, and utilities for cross-platform PySide 6.5 applications with a focus on 'frameless' styling.This project should be considered experimental and subject to breaking changes until a 1.0.0 release.Install$pipinstallpyside-app-coreRun example application$python-mexamples.simple_app--generate-rccGenerate resources filesResource files MUST be generated at least once for stylesheets and icons to function.# from repo with this lib installed$compile-pyside-theme<targetdirectory># custom QssTheme subclass where `./theme.py` has `THEME = CustomTheme()`$compile-pyside-theme\--custom-theme-pypaththeme.THEME\<targetdirectory># if needed to resolve python modules you can include pypath updates$compile-pyside-theme\--extra-python-path./src\--custom-theme-pypathsrc.example_app.theme.THEME\<targetdirectory>
Package: pyside-callbacks
pyside-callbacksGitHub repository:https://github.com/schang412/pyside-callbacksA small library that provides utility decorators for simplifying the creation of PySide6 UI. This package also contains
a mypy plugin to assist in the type-checking the signals according to the parameters.The QT Designer workflow with Python would look like this:Use QT Designer to createmain_win.uifile.Useuicto compilemain_win.uiintomain_win.pySub-Class the class defined inmain_win.py.Connect the signals to their handlers.importmain_winfromPySide6importQtWidgetsclassMyQtApp(main_win.Ui_MainWindow,QtWidgets.QMainWindow):def__init__(self)->None:super().__init__()self.setupUi(self)self.pushButton.clicked.connect(self.line_edit_return_pressed)self.lineEdit.returnPressed.connect(self.line_edit_return_pressed)defline_edit_return_pressed(self)->None:cmd=self.lineEdit.text()ifnotcmd:returnself.lineEdit.setText("")self.display.appendPlainText(cmd)However, this connection method does not inherently offer type-checking and could be improved using decorators:importmain_winfromPySide6importQtWidgetsimportpyside_callbacks@pyside_callbacks.pyside_callbacksclassMyQtApp(main_win.Ui_MainWindow,QtWidgets.QMainWindow):def__init__(self)->None:super().__init__()self.setupUi(self)@pyside_callbacks.widget_event("pushButton","clicked")@pyside_callbacks.widget_event("lineEdit","returnPressed")defline_edit_return_pressed(self)->None:cmd=self.lineEdit.text()ifnotcmd:returnself.lineEdit.setText("")self.display.appendPlainText(cmd)Note that we need to decorate both the class and the method because we need to add a hook to the__init__method in order to
register the callback to the class instance. The way that we keep track of the callbacks requires that thewidget_eventdecorator
is the outermost decorator. However, currently, themypyplugin expects onlywidget_eventcallbacks on functions that use it.In other words, we cannot mix @widget_event with other decorators (for example, @staticmethod).We can also include amypyplugin to ensure that our signals are correct. We add thepyside_callbacks_mypyplugin and suppress the errors from theuicgenerated file.[tool.mypy]plugins=["pyside_callbacks_mypy.plugin"][[tool.mypy.overrides]]module="main_win"ignore_errors=trueAdding the following lines to the example application:@pyside_callbacks.widget_event("lineEdit","cursorPositionChanged")defcurpos_changed(self,b:str)->None:print("changed cursor position!")Then, runningmypywe will find the errors:example/my_app/app.py:34:error:Argument2to"curpos_changed"hasincompatibletype"str";Emittedsignalwillexpecttype"int".[arg-type]example/my_app/app.py:34:error:Toomanyargumentsfor"curpos_changed";Emittedsignalwillsupply["int","int"][call-arg]Found2errorsin1file(checked2sourcefiles)Note that we have to add a type-hint tomain_win.Ui_MainWindow.setupUiotherwise dynamic types (typing.Any) will be inferred for all the widgets.