Saravanan666/pypi-org huggingface dataset:
Package: librestler
# RESTlerStatus: [![Travis Status](https://travis-ci.org/jdost/restler.svg?branch=master)](https://travis-ci.org/jdost/restler)RESTler is a python library I dreamed up that maps Object+method calls to RESTfulURL requests.  The idea is that you create a base RESTler object for the root of theRESTful web application and then use method calls to get sub URLs and then use somekeyword attributes to make various requests to the created route, with built inresponse handling.  This should make it easy to wrap a nice RESTful API into asimple python library.## Example``` python>> flickr = Restler('http://flickr.com/api')>> photos = flickr.photos>> photos.__url__'http://flickr.com/api/photos/'```## Getting StartedIf you have a RESTful API you want to wrap, just use the `Restler` constructor tocreate the base entry point of the application.  Then use the resulting object toaccess the sub-routes of the application.  Every attribute maps to a level of theURL, so `application.users.asdf` would request from `(application base)/users/asdf/`## Route ObjectThe `Route` object returned from each attribute of the route has a series ofmethods to help in accessing the current route or child routes.  The object itselfis calleable which maps to a `GET` request on the object.  Any other attributes willmap to sub URLs of the current URL the `Route` maps to.## Response ObjectAny request made via a `Route` will return a `Response` object.  This object willencapsulate the basic request with some helpers built in.  The main helper is thatthe object's representation will map to the clearest form of the response data.  Ifthis is a JSON string, it will be parsed, if it is an XML document, it will be apointer to the XML document, if it is a plaintext string, it will just be a plainstring.  The headers for the response will be accessible as well via a reservedproperty of the response.### Example``` pythonworkhammer = Restler('http://workhammer.herokuapp.com')login = workhammer.login("post", username='admin', password='password')if login.code > 300:throw "Login failed"players = workhammer.player()player = workhammer.player[players[0].id]()```
Package: libresvip
LibreSVIPLibreSVIP is a cross-platform and universal converter for many Singing Voice Synthesis (aka SVS) project formats.InstallationDownload from github releases:ReleasesAlternatively, you can install LibreSVIP with desktop support via pip (requires python 3.9+):pipinstalllibresvip[desktop]TranslationsIf you also want to add or contribute to a translation, checkLibreSVIP's page on Crowdin.ReferencesThis project is highly inspired by following projects:OpenSVIPUtaformatix3Other projects that are related to this project:QNrbfThe following article will give you a brief introduction about python libraries for text and binary parsing:Parsing In Python: Tools And LibrariesLicenseLibreSVIP is open-sourced software licensed under theMIT license.
Package: librian
Librian: 簡明強大的 Galgame | Visual Novel 引擎——來像 Markdown 一樣寫 Galgame 劇本吧！Librian 是容易上手的 Galgame 引擎，Librian 由 Python 和 JavaScript 編寫而成，基於 CEFPython 前端。Librian 適用於快速高效的 ADV 實現，能將你的奇思妙想迅速轉換爲成果——你只需提供素材文件和简单的劇本就能做出 Galgame！Librian 是面向劇本的引擎，賣點是:輕快便捷的原型開發。用戶友好。高度可擴展性。一分鐘的演示視頻劇本格式> BG 中庭.jpg
+ [舟舟, 潘大爺]
中庭。潘大爺在散步。
舟舟 (微笑)「啊！校長！終於找到你了！」
潘大爺 「舟舟！來得正是時候！」
潘大爺 (微笑)「來看看我新發明的催眠調教裝置！」
舟舟 (驚)「真有這種發明！？」不需要任何其他標記或代碼，一小段劇本就完成了。準備好立繪和背景後，運行 Librian 主程序並啓動工程——演出是這樣的效果。中文文檔如果你想瞭解詳細的使用方法，可以直接閱讀 Librian 的中文文檔——https://doc.librian.net。你可以輕鬆定製你的遊戲，包括特效、畫面樣式、甚至聯網，快來探索吧！快速上手直接下載打包的release 版本(推薦)。release 版本也附帶了librian 面板。或者使用pip install librian來安裝 librian。這需要本地 Python 爲 3.6 或 3.7 版本它不太穩定，所以最好先更新一下 pip 和 setuptools，要是裝不上我也沒辦法……Liber 分析器Liber 分析器是 Librian 用來分析劇本語言 Liber 的工具。如果你想要開發自己的 Galgame 引擎或者做一些很酷的事情，它會有所助益。它的倉庫在https://github.com/librian-center/liber-language你可以直接用pip install liber來安裝它。援交～QQ 群「Librian蘿莉會所」: 618775838。如果你需要使用幫助，或者對 Librian 和 Galgame 製作有興趣，或者想觀看蘿莉色圖，都可以來這裏討論。總之，一起玩就行啦。贊助如果你覺得 Librian 對你的工作或學習有幫助，歡迎給作者介紹一些可愛的女朋友。最好是蘿莉，要那種會坐在腿上蹭蹭，喊「歐尼醬」的。
Package: lib-rql
Python RQLIntroductionRQL (Resource query language) is designed for modern application development. It is built for the web, ready for NoSQL, and highly extensible with simple syntax.
This is a query language fast and convenient database interaction. RQL was designed for use in URLs to request object-style data structures.RQL ReferenceInstallPython RQLcan be installed frompypi.orgusing pip:$ pip install lib-rqlDocumentationPython RQLdocumentationis hosted on theRead the Docsservice.Projects using Python RQLDjango RQLis the Django app, that adds RQL filtering to your application.Visit theDjango RQLproject repository for more informations.NotesParsing is done withLark(cheatsheet).
The current parsing algorithm isLALR(1)with standard lexer.Values with whitespaces or special characters, like ',' need to have "" or ''Supported date format is ISO8601: 2019-02-12Supported datetime format is ISO8601: 2019-02-12T10:02:00 / 2019-02-12T10:02Z / 2019-02-12T10:02:00+03:00Supported operatorsComparison (eq, ne, gt, ge, lt, le, like, ilike, search)List (in, out)Logical (and, or, not)Constants (null(), empty())Ordering (ordering)Select (select)Tuple (t)ExamplesParsing a RQL queryfrompy_rqlimportparsefrompy_rql.exceptionsimportRQLFilterErrortry:tree=parse('eq(key,value)')exceptRQLFilterError:passFilter a list of dictionariesfrompy_rql.constantsimportFilterTypesfrompy_rql.filter_clsimportFilterClassclassBookFilter(FilterClass):FILTERS=[{'filter':'title',},{'filter':'author.name',},{'filter':'status',},{'filter':'pages','type':FilterTypes.INT,},{'filter':'featured','type':FilterTypes.BOOLEAN,},{'filter':'publish_date','type':FilterTypes.DATETIME,},]filters=BookFilter()query='eq(title,Practical Modern JavaScript)'results=list(filters.filter(query,DATA))print(results)query='or(eq(pages,472),lt(pages,400))'results=list(filters.filter(query,DATA))print(results)DevelopmentPython 3.8+Install dependenciespip install poetry && poetry installTestingPython 3.8+Install dependenciespip install poetry && poetry installCheck code style:poetry run flake8Run tests:poetry run pytestTests reports are generated intests/reports.out.xml- JUnit test resultscoverage.xml- Coverage xml resultsTo generate HTML coverage reports use:--cov-report html:tests/reports/cov_htmlLicensePython RQLis released under theApache License Version 2.0.
Package: librusapi
Contentslibrusapi - A Librus Synergia scraperInstallTech usedDevelopment specificQuick startGetting the timetableListing messagesDocumentationWorking on the projectGenerating docsStatuslibrusapi - A Librus Synergia scraperGoal of this project is to free students from the limitations of Librus Synergia software
mainly: giving the userfreshinformation unlike their mobile app that can only
refresh every3hor so.InstallpipinstalllibrusapiTech usedwritten inpythondeveloped with3.9in mindrequestslibrary for fetching data, mainly htmlBeautifulSoup4library for parsing the dataDevelopment specificmypyfor type checkingpytestfor running testspdocfor creating html documentationQuick startExample usage of the APIGetting the timetablefromlibrusapi.tokenimportget_tokenfromlibrusapiimporttimetabletoken=get_token('username','password')lesson_units=timetable.lesson_units(token)forluinlesson_units:print(lu)Listing messagesfromlibrusapi.tokenimportget_tokenfromlibrusapiimportmessagestoken=get_token('username','password')messages=messages.list_messages(token)formsginmessages:print(msg)DocumentationDocs can be foundhereWorking on the projectgitclonehttps://github.com/ravensiris/librusapicdlibrusapipython-mvenvvenv# This may be different depending on your operating system and shellsource./venv/bin/activatepipinstall-rrequirements.txt# Installing as an editable librarypipinstall-e.Now you can importlibrusapiin your projectGenerating docspdoc--htmllibrusapiStatusCurrenty you can:Authenticate and get a tokenList all lessons in a timetableList all messages ( can’t read them yet )Copyright 2021 Maksymilian JodłowskiPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.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 OR COPYRIGHT HOLDERS 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.
Package: libs3
libs3The purpose of this repo is to provide an easy to use interface to s3 for python developers, the core python libraries like os, shutil are easy to use and more familier to any python programmer.The repo aims to mimic the functionality so that your code will interact with s3 in same way as it is interacting in linux or windows filesystem, with 1 or 2 line changeInstallationpip install libs3DocumentationA list of functions have been exposed which are working as of now and more will be added later (contributions are welcome)osFunctionAvailaibleCommentsos.listdir(x)yesAs s3 has no notion of directories, in order to list directories along with files we have to traverse entire bucket and filter the results.For more quick results you can useos.listdir(x, filesonly=True)is much fast but will only returns files and not directoryos.mkdir(x)yesos.makedirs(x)yesos.remove(x)yesos.removedirs(x)nowill be added in later releasesos.rmdir(x)nowill be added in later releasesos.rename(x)nowill be added in later releasesos.renames(x)nowill be added in later releasesos.replace(x)nowill be added in later releasesos.scandir(x)nowill be added in later releasesos.walk(x)nowill be added in later releasesos.pathFunctionAvailaibleCommentsos.path.basename(x)yesos.path.commonpath(x)nowill be added in later releasesos.path.commonprefix(x)nowill be added in later releasesos.path.dirname(x)yesos.path.exists(x)yesos.path.isfile(x)yesos.path.isdir(x)yesos.path.join(x)nowill be added in later releasesshutilFunctionAvailaibleCommentsshutil.copyfile()yescopy file(local/s3) to file(local/s3)shutil.copy()yescopy file(local/s3) to file/folder(local/s3)shutil.copytree()nowill be added in later releasesshutil.rmtree()yesshutil.move()yescopy file(local/s3) to file/folder(local/s3)shutil.disk_usage()nowill be added in later releasesExampleos - importing the module and authorizing using s3 credentialsfrom libs3 import os
os.authorize(bucket, aws_access_key_id, aws_secret_access_key)After authorizing access the interface like normally accessing filesystemprint(os.listdir("/dir_1/dir_1"))
print(os.listdir("/dir_1/dir_1", filesonly=True))   # Much quicker

print(os.path.exists('/dir_1/file_2'))
print(os.path.isfile('/dir_1/file_2'))
print(os.path.isdir('/dir_1/file_2'))
print(os.path.basename('/dir_1/file_2'))
print(os.path.dirname('/dir_1/file_2'))

os.remove('/dir_2/file_ks')shutil - importing the module and authorizing using s3 credentialsfrom libs3 import shutil
shutil.authorize(bucket, aws_access_key_id, aws_secret_access_key)After authorizing access the interface like normally accessing filesystem# Copying file
shutil.copy("/dir_2/file_1", "/dir_2/file_1_cp")         # Copy within s3
shutil.copy("/dir_2/file_1", "localfile", download=True) # Copy from s3 to local
shutil.copy("localfile", "/dir_2/filename", upload=True) # Copy from local to s3

shutil.copyfile("/dir_2/file_1", "/dir_2/file_ks")       # Copy within s3

# Removing
shutil.rmtree('/dir_2/cold')

# Moving
shutil.move('/dir_2/file_1_cp', '/dir_2/file_1_moved')
shutil.move('file_1_cp', '/dir_2/file_1_moved', upload=True) # Moving file from local to s3
Package: libs3tl
### Step class ###
The Step class consists of common functions that can be inherited by other classes : setTaskID, setUUID, setTaskExecutionID ,startRedisConn ,setLogger ,loadParams ,connectToAPIForKey , create and GetResponseFromURL, getLogger, exceptionTraceback, getRelativeFile.### Extract class###
The extract class includes an init method that sets all Parameters and log files, as well as a superclass startup that can be defined from the client extract.### ML class ###
The ML class is made up of an init method that sets all parameters and the log file, as well as a startMLSubscriber method that subscribes to incoming data.### Transform class ###
The Transform class has an init method that sets all Parameters and the log file. a startTRSubscriber method that subscribes to incoming data.### Load Class ###
Load class consists of an init method that sets all parameters and the log file, load subscribers to subscribe to incoming data from Redis queue, and client logic; to load final data, it needs to be added to the client load file;### Connectors Added ###
AzBlob Read (Azure Blob)Â
Using this connector, you can read files from AzBlob.
For an Azure Blob Read connection ,create a source folder inside params, and add spec.json with connection configs.AzBlob Write (Azure Blob)
Using this connector, you can write a file to an AzBlob.
For an Azure Blob Write connection, create a destination folder inside params, and add spec.json with connection configs.SFTP ReadÂ
This connector is used to read files from an SFTP server.
For an SFTP connection, create a source folder inside params and add spec.json with connection configs.SFTP WriteÂ
Using this connector, you can read files to an SFTP server for an SFTP write connection,
Create a destination folder inside params and add spec.json with connection configs.Postgres ReadÂ
This is the Source connector for PostgreSQL databases using SQLAlchemy,
It includes the check() method, which validates the connection to the Postgres database.
The read() method takes an optional query parameter and executes the query on the connected database. discover(): This discover() function is used to discover the tables in the database.Postgres WriteÂ
Using this connector, you can read files into a Postgres database, consisting of check(),
read() In addition to this, it contains the create_table() function that is used to create a new table in the database.
It compiles the table object provided into a SQL; the alter_table() function is used to alter a table in the database, and the write() function is used to write data to the database.
It takes in the table object and a list of dictionaries.IPFS sourceÂ
You can use this connector to read file from any IPFS http url.
This connector includes a check() function for validating the connection and a read() function for returning data in bytes format.IPFS destinationÂ
This connector helps you upload any file to a custom IPFS node.
The write() function in this connector uses file and target location as input and will return JSON consisting of contentId, name, and size of the file.License-File: LICENSE.txtUNKNOWN
Package: libsa4py
IntroLibSA4Pyis a static analysis library for Python, which extracts type hints and features for training ML-based type inference models.RequirementsQuick InstallationUsageProcessing projectsMerging projectsJSON OutputRequirementsPython 3.7 or newer (Python 3.8 is recommended)Watchman(for runningpyre) [Optional]MacOS or Linux systemsQuick Installationgit clone https://github.com/saltudelft/libsa4py.git
cd libsa4py && pip install .UsageProcessing projectsGiven Python repositories, run the following command to process source code files and generate JSON-formatted outputs:libsa4py process --p $REPOS_PATH --o $OUTPUT_PATH --d $DUPLICATE_PATH --j $WORKERS_COUNT --l $LIMIT --c --no-nlp --pyreDescription:--p $REPOS_PATH: The path to the Python corpus or dataset.--o $OUTPUT_PATH: Path to store processed projects.--d $DUPLICATE_PATH: Path to duplicate files of the given dataset (i.e. jsonl.gz file produced by theCD4Pytool). [Optional]--s: Path to the CSV file for splitting the given dataset. [Optional]--j $WORKERS_COUNT: Number of workers for processing projects. [Optional, default=no. of available CPU cores]--l $LIMIT: Number of projects to be processed. [Optional]--c: Whether to ignore processed projects. [Optional, default=False]--no-nlp: Whether to apply standard NLP techniques to extracted identifiers. [Optional, default=True]--pyre: Whether to runpyreto infer the types of variables for given projects. [Optional, default=False]--tc: Whether to type-check type annotations in projects. [Optional, default=False]Merging projectsTo merge all the processed JSON-formatted projects into a single dataframe, run the following command:libsa4py merge --o $OUTPUT_PATH --l $LIMITDescription:--o $OUTPUT_PATH: Path to the processed projects, used in the previous processing step.--l $LIMIT: Number of projects to be merged. [Optional]Applying typesTo apply Pyre's inferred types to projects, run the following command:libsa4py apply --p $REPOS_PATH --o $OUTPUT_PATHDescription:--p $REPOS_PATH: The path to the Python corpus or dataset.--o $OUTPUT_PATH: Path to the processed projects, used in the previous processing step.JSON OutputAfter processing each project, a JSON-formatted file is produced, which is describedhere.
Package: libsaas
A library to take the pain out of using SaaS APIs.It provides an abstraction layer on top of various APIs, taking care of
constructing the URLs, serializing parameters and authentication. You just call
Python methods and receive Python objects.It’s like an ORM for SaaS!Libsaas is built byDucksboardand distributed under the MIT license. You can
file bugs in theissue tracker, browse thedocumentationor help out by
contributing support for new services.
Package: libsam
Sam file related librariesLibsamis a collection ofSAM/BAM
filerelated python library.
Packaged included in this library include:samparser: A robust sam file format checker and parserInstallYou can install this package usingPyPi:pipinstalllibsameasy_installlibsamor you canDownloadthe .tar.gz source file formPyPiand run the setup.py script:pythonsetup.pyinstallUsageIn your python script, add the following line(usesamparseras an
example):fromlibsamimportsamparserthen you can use the functions or classes in the corresponding
libraries:sam=samparser.Sam()...CopyrightCopyright (c) 2015dlmeduLi@163.com
Package: libsampled
libsampled - py3Allows developers to emit samples for ingestion into SampleDSample CollectionSample collection is non-blocking. Samples are sent for ingestion in a background thread.Samples are batched for ingest once eitherSAMPLED_BUFFER_FLUSH_SIZEsamples have been collected orSAMPLED_BUFFER_FLUSH_INTERVAL_MSmilliseconds have passed since the last batch was sent.On shutdown of your python program samples may be left un-sent, samples are always best-effort delivery.A sample is a dictionary withstrkeys andUnion[str, int, float, List[str]]values.Usage Examplefrom libsampled import sampled, canonical

def main() {
    // do your logic

    sampled.add_sample(dataset="my_awesome_dataset", sample={
        "hostname": canonical.hostname(),
        "logic": __name__,
        "foo": 123,
        "bar": 0.98,
        "baz": ["a", "b", "c"]
    })
}

if __name__ == "__main__":
    main()ConfigurationThe following environment variables are available:Environment VariableDescriptionDefaultSAMPLED_BUFFER_FLUSH_SIZEHow many samples to keep before sending for ingest100SAMPLED_BUFFER_FLUSH_INTERVAL_MSInterval in milliseconds between batches being sent1000SAMPLED_DAEMON_HOSThost/ipv4/ipv6 address to send samples tolocalhostSAMPLED_DAEMON_PORTTCP port number to send samples to7675
Package: libsan
LibSANPython library to manage Storage Area Network devicesInstallationDependenciesPython>=3.6pip>=20.3Fedora, RHEL-8, RHEL-9dnf install python3-pip(optional) create virtualenvpython3 -m pip install virtualenvpython3 -m venv ~/libsan-venv~/libsan-venv/bin/python3 -m pip install -U pip wheel~/libsan-venv/bin/python3 -m pip install libsan(uselibsan[ssh]to install optional ssh capabilities)From sourcegit clone; cd python-libsanpython3 -m pip install .orpython3 -m pip install .[ssh]Installation on alternate architecturesBefore installing libsan on non-x86_64 archs (s390x, ppc64le, aarch64),
installpython3-develandgccto be able to compile dependencies as needed.How to uninstall the modulepython3 -m pip uninstall libsanUsage:Before using the modules copy sample_san_top.conf
to /etc/san_top.conf (this is the default path to read the config) and
edit it according to your SAN environment.
Package: libs-appium
Make sure you have upgraded version of pipWindowspy -m pip install --upgrade pipLinux/MAC OSpython3 -m pip install --upgrade pipCreate a project with the following structurepackaging_tutorial/
├── LICENSE
├── pyproject.toml
├── README.md
├── setup.cfg
├── src/
│   └── example_package/
│       ├── __init__.py
│       └── example.py
└── tests/
touch LICENSE
touch pyproject.toml
touch setup.cfg
mkdir src/mypackage
touch src/mypackage/__init__.py
touch src/mypackage/main.py
mkdir testspyproject.tomlThis file tells tools like pip and build how to create your project[build-system]
requires = [
    "setuptools>=42",
    "wheel"
]
build-backend = "setuptools.build_meta"build-system.requires gives a list of packages that are needed to build your package. Listing something here will only make it available during the build, not after it is installed.build-system.build-backend is the name of Python object that will be used to perform the build. If you were to use a different build system, such as flit or poetry, those would go here, and the configuration details would be completely different than the setuptools configuration described below.Setup.cfg setupUsing setup.cfg is a best practice, but you could have a dynamic setup file using setup.py[metadata]
name = example-pkg-YOUR-USERNAME-HERE
version = 0.0.1
author = Example Author
author_email = author@example.com
description = A small example package
long_description = file: README.md
long_description_content_type = text/markdown
url = https://github.com/pypa/sampleproject
project_urls =
    Bug Tracker = https://github.com/pypa/sampleproject/issues
classifiers =
    Programming Language :: Python :: 3
    License :: OSI Approved :: MIT License
    Operating System :: OS Independent

[options]
package_dir =
    = src
packages = find:
python_requires = >=3.6

[options.packages.find]
where = srcRunning the buildMake sure your build tool is up to dateWindowspy -m pip install --upgrade buildLinux/MAC OSpython3 -m pip install --upgrade buildCreate the buildpy -m buildUpload to pypitwine upload dist/*Referenceshttps://packaging.python.org/tutorials/packaging-projects/