Saravanan666/pypi-org huggingface dataset:
Package: libgen-api-enhanced
LibgenAPI EnhancedSearch Library Genesis programmatically using an enhanced Python library. This fork extends the originallibgen-apibyHarrison Broadbentwith added features like direct download links and book cover links. It also returns 100 results by default, instead of 25.ContentsGetting StartedBasic SearchingFiltered SearchingFiltered Title SearchingFiltered Author SearchingNon-exact Filtered SearchingFilter FieldsContributorsGetting StartedInstall the package -pip install libgen-api-enhancedPerform a basic search -# search_title()fromlibgen_api_enhancedimportLibgenSearchs=LibgenSearch()results=s.search_title("Pride and Prejudice")print(results)Check out theresults layoutto see how the results data is formatted.Basic Searching:Search by title or author:Title:# search_title()fromlibgen_api_enhancedimportLibgenSearchs=LibgenSearch()results=s.search_title("Pride and Prejudice")print(results)Author:# search_author()fromlibgen_api_enhancedimportLibgenSearchs=LibgenSearch()results=s.search_author("Jane Austen")print(results)Filtered SearchingSkip to theExamplesYou can define a set of filters, and then use them to filter the search results that get returned.By default, filtering will remove results that do not match the filters exactly (case-sensitive) -This can be adjusted by settingexact_match=Falsewhen calling one of the filter methods, which allows for case-insensitive and substring filtering.Filtered Title Searching# search_title_filtered()fromlibgen_api_enhancedimportLibgenSearchtf=LibgenSearch()title_filters={"Year":"2007","Extension":"epub"}titles=tf.search_title_filtered("Pride and Prejudice",title_filters,exact_match=True)print(titles)Filtered Author Searching# search_author_filtered()fromlibgen_api_enhancedimportLibgenSearchaf=LibgenSearch()author_filters={"Language":"German","Year":"2009"}titles=af.search_author_filtered("Agatha Christie",author_filters,exact_match=True)print(titles)Non-exact Filtered Searching# search_author_filtered(exact_match = False)fromlibgen_api_enhancedimportLibgenSearchne_af=LibgenSearch()partial_filters={"Year":"200"}titles=ne_af.search_author_filtered("Agatha Christie",partial_filters,exact_match=False)print(titles)Filter FieldsYou can filter against any of the Library Genesis column names, which are given as -col_names=["ID","Author","Title","Publisher","Year","Pages","Language","Size","Extension","Mirror_1","Mirror_2","Mirror_3","Mirror_4","Mirror_5","Edit",]Results LayoutResults are returned as a list of dictionaries:[{"Author":"John Smith","Edit":"http://example.com","Extension":"epub","ID":"00000","Language":"German","Mirror_1":"http://example.com","Mirror_2":"http://example.com","Mirror_3":"http://example.com","Mirror_4":"http://example.com","Mirror_5":"http://example.com","Pages":"410","Publisher":"Publisher","Size":"1005 Kb","Title":"Title","Year":"2021"}]ContributorsA massive thank you to those that have contributed to this project!Please don't hesitate to raise an issue, or fork this project and improve on it.Thanks to the following contributors -harrison-broadbentcalmooHENRYMARTIN5
Package: libgen-dl
libgen_dlA Library Genesis command line downloader!Usagelibgen_dl "book-title-here" [--ext file extension]Development set upClone the repogit clone https://git.prydt.xyz/pry/libgen-dlInitalize virtualenv (optional but recommended)virtualenv . # in the root directory of the projectInstall all dependenciespip3 install -r requirements.txtor if you used virtualenv,./bin/pip3 install -r requirements.txtNow you are ready to start working!
Package: libgener
libgener: Python LibGen helper functionsinstallationpipinstalllibgenerusagedownload all torrentslibgener-torrents-otorrents/-ooption specify where torrent files saveIf you have a proxy, you can:libgener-torrents-p'http://localhost:6152'-otorrents/Default LibGen server ishttp://libgen.rs/, if you want to use another server, you can:libgener-torrents-s'http://gen.lib.rus.ec/'-p'http://localhost:6152'-otorrents/When you encounter errors, you can enable debug mode:libgener-torrents-s'http://gen.lib.rus.ec/'-p'http://localhost:6152'-otorrents/-v
Package: libgensearch
# libgen-search
Automatically downloads books from libgen given the book title.Uses nltk to compare the similarity between the search term and the book title because libgen sometimes doesn’t display books with exactly matching titles first.You can edit the extensions you want to use in the settings.ini file, as well as what language of books you prefer.$ python main.py Algebraic GeometryPlan to add ability to search by authors since that’s pretty important, like there will be tons of books called the same thing but by different authors.
Package: libgen-uploader
A Library Genesis ebook uploader.This library is to be considered unstable/beta until v1.0.0. API may change until then.Installationpipinstalllibgen-uploaderUsage from command-linepython-mlibgen_uploader(--scitech|--fiction)[args]book.epubOptional arguments:--metadata-source {local,amazon_us,amazon_uk,amazon_de,amazon_fr,amazon_it,amazon_es,amazon_jp,bl,douban,goodreads,google_books,loc,rsl,worldcat}
    Source to fetch book metadata from

--metadata-query METADATA_QUERY
    Metadata query for selected source (supports multiple, comma-separated)

-d, --debug
    Activate debug loggingUsage as libraryThis library usesreturns, and returnsResult containerswhich can either contain a success value or a failure/exception. Exception values are returned, not raised, so you can handle them as you wish and avoid widetry/exceptblocks or program crashes due to unforeseen exceptions.Uploading booksTwo methods are exposed for uploading books:upload_scitechandupload_fiction.fromlibgen_uploaderimportLibgenUploaderfromreturns.pipelineimportis_successfulu=LibgenUploader()result=u.upload_fiction("book.epub")ifis_successful(result):upload_url=result.unwrap()# type: strelse:failure=result.failure()# type: ExceptionFetching metadataMetadata support is not complete yet. The default metadata are the one contained in the book itself. You can then fetch additional metadata from the sources supported by the Library Genesis upload form, namely:Other Library Genesis record ("local")Amazon US/UK/DE/FR/IT/ES/JP ("amazon_us","amazon_uk","amazon_de","amazon_fr","amazon_it","amazon_es","amazon_jp")British Library ("bl")Douban.com ("douban")Goodreads ("goodreads")Google Books ("google_books")Library of Congress ("loc")Russian State Library ("rsl")WorldCat ("worldcat")Any fetched metadata completely replaces all metadata contained in the ebook itself (this is how the upload form works), and any custom (user-provided) metadata overrides the default/fetched ones.# use metadata contained in the booku=LibgenUploader()u.upload_scitech("book.epub")# session-wide metadata sourceu=LibgenUploader(metadata_source="amazon_it")u.upload_scitech("book.epub",metadata_query="9788812312312")# book-level metadata sourceu=LibgenUploader()u.upload_scitech("book.epub",metadata_source="amazon_it",metadata_query=["9788812312312","another_isbn"]# you can pass an array of values in case the first ones don't return results)# custom, user-provided metadata (override default/fetched)fromlibgen_uploaderimportLibgenMetadatam=LibgenMetadata(title="new title",authors=["John Smith","Jack Black"])u.upload_scitech("book.epub",metadata=m)DonationsJust in case you want to say thanks :)BTC: 3Kdyv75GpzwZ1b19QECwr3znsjSSkoRAVqETH: 0x1Af2121BaF1795Ce3685893d89E5eC66E1DC510DOGE: DLdbw36tgSqK52njimJKsitCtVg1D4n8t9
Package: libgeohash
libgeohashA python library for interacting withgeohashes.The library is divided into 3 modules:geohash_base: Base functions for interacting with geohashes e.g.encode,decode,neighbors,bboxetc.distance_metrics: Distance related functions e.g.distance,dimensionsetc.geometry: Functions for conversion of a polygon to a list of geohash and vice versa. e.g.polygon_to_geohash,geohash_to_polygon. Useful for approximating geographical regions with geohashes. Makes use ofshapelylibrary for geometric calculations.InstallationLinux and Mac users can install the package via pip.$ pip install libgeohashUsage>>>importlibgeohashasgh>>>gh.encode(57.64911,10.40744,precision=10)'u4pruydqqv'>>>gh.decode('u4pruydqqv',errors=True)(57.64911264181137,10.407437682151794,2.682209014892578e-06,5.364418029785156e-06)>>>gh.neighbors('u4pruydqqv'){'ne':'u4pruydqrn','e':'u4pruydqrj','n':'u4pruydqqy','se':'u4pruydqrh','w':'u4pruydqqt','sw':'u4pruydqqs','nw':'u4pruydqqw','s':'u4pruydqqu'}# Returns dimensions of the bounding box referred by the geohash in meters. (width, height)>>>gh.dimensions('u4pruyd')(152.9,152.4)# Returns the great circle distance (Haversine) between two geohashes or coordinates.>>>gh.distance('u4pruyd','u4pruyg')173.19066702376304For more functions and their usage, please refer to the doc strings.Known issuesFails to approximate a polygon spanning across theInternational Date Linei.e. 180/-180 longitude. Shouldn't be much of a problem since there aren't any geographical entities that actually span across it due to nature of the line itself.If you happen to find any other bugs, please report them in the issues section.
Package: libGetAvatarGitHub
libpythonproMÃ³dulo para exemplificar construÃ§Ã£o de projetos Python no curso PyToolsNesse curso Ã© ensinado como contribuir com projetos de cÃ³digo abertoLink para o cursoPython ProSuportada versÃ£o 3 de PythonPara instalar:python 3 - m venv venvvenv\Scripts\activatepip install -r requirements-dev.txtPara conferir qualidade de cÃ³digo:flake8TÃ³picos a serem abordados:GitVitualenvPip
Package: libgiza
libgizais a Python package that provides a collection of base
classes used in the construction ofgiza, which is a documentation build
automation tool.libgizaprovides several of functionality:Tools for defining and running build tasks in parallel builds. Seelibgiza.appfor the primary interface, along with the
componentslibgiza.taskandlibgiza.pool. Think of this as
a worker pool on steroids.Tools for content generation. Seelibgiza.inheritancefor these
classes. This is the underlying toolkit for the defining feature of
giza, which makes it possible to describe semi-structured content
and generate content from base templates or using existing
content as a basis for related content.A Python interface for common git operations. TheGitRepo()class inlibgiza.gitwraps thegitcommand internally, but
provides methods for many common operations and more reasonable
output/error handlingA base class for defining classes for “configuration” data. See theConfigurationBaseandRecursiveConfigurationBaseinlibgiza.config. These provide support for serialization and
de-serialization, easy ingestion from either files or
dictionaries, and using default python@propertydefined
getters and setters for more strict input validation and type
checking.
Package: libgmail
Thelibgmailproject is a pure Python binding to provide access to
Google’s Gmail web-mail service.The library currently ships with a demonstration utility to archive
messages from a Gmail account into mbox files, suitable for importing
into a local email client.Also includes a demonstration utility that acts as a SMTP proxy to
allow mail to be sent from any standard mail client that uses SMTP
(e.g. Mail.app, Mozilla etc).New demonstration utility acts as a POP3 proxy to allow mail to be
retrieved from any standard mail client that uses POP3 (e.g. Mail.app,
Mozilla etc).Features demonstration utility to provide access to Gmail message
attachments via a download-only FTP proxy–this allows retrieval of
suitably marked attachments by a standard FTP client. Utilize more
of your Gmail space!
Package: libgolf
libgolflibgolf is a library of common utilities for writing golfing language builtins. It currently includes:List, a well-featured lazy list classCharacter, a thin wrapper for representing Unicode charactersString, a wrapper around aListofCharacters that behaves more like Python'sbuilt-instrtypevectorise, a higher-order function (or decorator) for automatically mapping a function over its argumentslibgolf aims to semi-standardise these features across golfing languages by allowing them to be shared, and provide high-quality code with unit tests
to ensure robustness of their implementations.
Package: libgpt
libgptlibgpt is a Python module that provides functions to interact with GPT3 and GPT4 models using different backends.Cookie files:This module only accepts cookie files in JSON format.GPT3 Backends:This module supports two GPT3 backends: freegpt and thebai.GPT4 Backend:This module supports only one GPT4 backend: Bing Chat.Dependencies:This module requires selenium and undetected_chromedriver libraries.How to Extract a Cookie File? (Required for GPT4)To extract a cookie file, please follow these instructions:Install the cookie editor extension for Chrome or Firefox.Go to bing.com.Open the extension.Click "Export" on the bottom right, then "Export as JSON" (This saves your cookies to clipboard).Paste your cookies into a file called cookies.json.Usage:GPT3To use the GPT3 backend, you can call the function GPT3() with the prompt you want to provide as the only argument.from libgpt import GPT3

response = GPT3("I need a prompt for my essay about quantum mechanics.")
print(response)This will return a string with the response generated by the GPT3 model using the freegpt backend.You can also specify the backend you want to use by passing the backend parameter.from libgpt import GPT3

response = GPT3("I need a prompt for my essay about quantum mechanics.", backend="thebai")
print(response)This will return a string with the response generated by the GPT3 model using the thebai backend, which may produce different results.GPT4To use the GPT4 backend, you can call the function GPT4() with the prompt you want to provide and the path to the cookie file you extracted as parameters.from libgpt import GPT4

response = GPT4("I need a prompt for my essay about quantum mechanics.", "cookies.json")
print(response)This will return a string with the response generated by the GPT4 model using the Bing Chat backend and the Creative conversation style by default.You can also specify the conversation style you want to use by passing the style parameter.from libgpt import GPT4

response = GPT4("I need a prompt for my essay about quantum mechanics.", "cookies.json", style="Precise")
print(response)This will return a string with the response generated by the GPT4 model using the Bing Chat backend and the Precise conversation style.
Package: libgql
# libgql - GraphQL Linked Libraries## The ProblemHow can I build libraries and modules that operate accross programminglanguages and environments?## The SolutionTo solve this problem with web services, we build APIs that we can use betweenlanguages. Unfortunately, these APIs require us to make HTTP requests....or do they?Enter GraphQL: Protocal Agnostic, that means, we can implement it over a CLIinterface and have an incredibly handy way to build cross language bindingswithout all the fuss.## What does it do?libgql will define a protocal for doing graphql over CLI and implement as manylanguage bindings as we possibly can.## UsageI would recommend looking at the tests for usage, since it varies from languageto language. To consume a module that uses libgql, install the bindings for yourlanguage:| javascript | `yarn add libgql`       ||------------|-------------------------|| python     | `pipenv install libgql` |Then import the bindings and load the module:### javascript```javascriptimport { loadModule } from "libgql"const myModule = loadModule("./path/to/libgql/module/executable");result = await myModule(graphqlQueryStringHere, optionalVariables);```### python```pythonfrom "libgql" import load_modulemyModule = load_module("./path/to/libgql/module/executable")result = myModule(graphqlQueryStringHere, optionalVariables)```
Package: libgranzottiPyTools
granzottiPyToolsPara aprender a usar o pytoolsSuportada a versÃ£o 3 do python.Para instalar:py -3 -m venv .venvsource .venv\Scripts\activatepip install -r requiremets-dev.txtPara conferir qualidade do cÃ³digo:flake8no dia27/10/2020aprendi a usar o gitignore. Os links Ãºteis foram:Criar gitignoreEditar e salvar um arquivo gitignoreno dia28/10/2020aprendi a instalar bibliotecas de terceiros.no dia29/10/2020aprendi a criar o arquivo requirements para instalaÃ§Ã£o das dependÃªcias.no dia29/10/2020aprendi a usar o flake8.no dia29/10/2020configurei o travis CI.no dia5/11/2020Integrei com o PyUp.no dia11/11/2020Criado o arquivo setup.py.
Package: libgravatar
A library that provides a Python 3 interface for the Gravatar API.
API details:https://en.gravatar.com/site/implement/InstallationInstall via pip:$ pip install libgravatarUsageSee more details onhttps://libgravatar.readthedocs.org/Gravatar APIGravatar API requires no authentication to get images and profiles URLs.Getting the user profile image:fromlibgravatarimportGravatarg=Gravatar('myemailaddress@example.com')g.get_image()'https://www.gravatar.com/avatar/0bc83cb571cd1c50ba6f3e8a78ef1346'Getting the profile URL:fromlibgravatarimportGravatarg=Gravatar('myemailaddress@example.com')g.get_profile()'https://www.gravatar.com/0bc83cb571cd1c50ba6f3e8a78ef1346'Gravatar XML-RPC APIThe XML-RPC API requires authentication.You can use your Gravatar.com’s email and password:fromlibgravatarimportGravatarXMLRPCg=GravatarXMLRPC('name@example.com',password='1234')g.test()# test the APIor if you have an account at Wordpress.com you can use your email and
API key. You can find your API key athttps://apikey.wordpress.com/just be sure to pass to the function your email instead of your username:fromlibgravatarimportGravatarXMLRPCg=GravatarXMLRPC('name@example.com',apikey='1234')g.test()# test the APIDevelopmentTo contribute to this project or to test this library locally you’ll need to install these dependencies:python3-mvenvvenv# for example on a virtual environmentsourcevenv/bin/activatepipinstallpytestblackand you can validate your changes running:pytest--doctest-modules--verboseblack.--check--diffAuthor and contributorsPablo Seminario (@pabluk)Caleb FANGMEIER (@cfangmeier)Rarm NAGALINGAM (@snowjet)Manan (@mentix02)Gareth Simpson (@xurble)Sean Kelly (@nutjob4life)
Package: libgs-ops
Requirementslibgs_ops is meant to be fairly light on requirements and compatible enought to be installed system-wide.  However for the time being it requires python2.7.x. Python 3 compatability is on the roadmap and a fairly simple upgrade.Installationpip install libgs_opsDocumentationIf you do not want to compile the spinx documentation yourself,
you can find it here:https://kworm1.github.io/libgs_ops-docs/
Package: libhamming
Library for hamming encode or decode.InstallationCompile and install the library:pip3 install libhammingAfter installation you can run unit tests to make sure that the library works fine.  Execute:python -m libhamming.testUsageIn Python 3::import libhamming as hammingExampleimport libhamming as hamminghamming.encode(b’0111111100’)hamming.encode(b’x00x01x01x01x01x01x01x01x00x00’)hamming.decode(b’00001110111100’)hamming.decode(b’x00x00x00x00x01x01x01x00x01x01x01x01x00x00’)V0.2 (2019-03-21)Release ver0.2
Package: libheader
LibheaderlhA file type that encapsualtes a header (.h), and a static library (.lib/.a)should be able to be#includeby normal C, but requires a special linker that can recognize a .lh fileExamplemain.c#include"sample/test.lh"intmain(){testfunc();return0;}test.h#include <stdio.h>
void testfunc();test.c#include"test.h"voidtestfunc(){printf("Hello, World!\n");}makelh test.h test.ccreates a test.lhgcclh main.c --lh=test.lh -o test.execompiles using the test.lh file
Package: libhikvision
LibHikvisionPython library to parse Hikvision datadirs that Hikvision IP cameras store the videos.
Using this class you can view details about recordings stored in a datadir and extract video and thumbnails.Working Example#!/usr/bin/python3fromlibhikvisionimportlibHikvisionfromdatetimeimportdatetimecameradir='/var/tmp/hikvision/'hik=libHikvision(cameradir,'video')# Get information about the serverprinthik.getNASInfo()# Extract the segments within a specific range of datessegments=hik.getSegments(from_time=datetime(2019,8,21,22,23,30),to_time=datetime(2019,8,21,22,25,00),)# Extract the Videos and Images from segments found abovefornum,segmentinenumerate(segments,start=0):print('{0:4}){1[cust_filePath]:55}{1[cust_duration]:5}{1[startOffset]:10}{1[endOffset]:10}{1[cust_startTime]}-{1[cust_endTime]}'.format(num,segment))print(hik.extractSegmentMP4(num,cachePath='/var/tmp/',filename='/var/tmp/video{0}.mp4'.format(num)))print(hik.extractSegmentJPG(num,cachePath='/var/tmp/',filename='/var/tmp/video{0}.jpg'.format(num)))You should also check the documentation of each method for extra options.CreditsBased on Dave Hope's PHP code available athttps://github.com/davehope/libHikvision
Package: libhockey
This project has been deprecatedDue to the immenent switch from Hockey to App Center, this project has been deprecated. Minor updates may still be made, but these should not be counted on in any way. No pull requests will be accepted at this point. Any issues are unlikely to be addressed.libhockeylibhockeyis a wrapper around the Hockey App REST API. It's aim is to be a simple and easy to use as possible.It doesn't cover every single API, but does the basics. Feel free to open an issue or a pull request for API support.Getting startedJust add the following and you are ready to go:importlibhockeyclient=libhockey.HockeyClient(access_token="...")ExamplesListing all versions of an appforversioninclient.versions.generate_all("[app id]"):print(version.download_url)Uploading a builddownload_link=client.versions.upload("/path/to/app.ipa","Release notes go here")Find new crashes in a buildcurrent_crashes=client.crashes.groups_for_version("[app id]","[current version id]")previous_crashes=client.crashes.groups_for_version("[app id]","[previous version id]")new_crashes=list(set(current_crashes)-set(previous_crashes))forcrashinnew_crashes:print(f"({crash.number_of_crashes}){crash.crash_file}-{crash.crash_class}:{crash.crash_method}")ContributingThis project welcomes contributions and suggestions.  Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visithttps://cla.microsoft.com.When you submit a pull request, a CLA-bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.This project has adopted theMicrosoft Open Source Code of Conduct.
For more information see theCode of Conduct FAQor
contactopencode@microsoft.comwith any additional questions or comments.
Package: lib-holdings
lib-holdingsCLI tool for retrieving holding counts for a list of OCNs and libraries.
Uses the OCLC API:https://developer.api.oclc.org/Installation$pipinstalllib-holdingsUsage$holdings[OPTIONS]INFILE_OCNSINFILE_SYMBOUT_FOLDERARGUMENTS:INFILE_OCNS:    text file containing OCNs (1 per line)
INFILE_SYMB:    text file containing institute symbols (1 per line)
OUT_FOLDER:     path to the output directoryOPTIONS:--startINTEGERPositionofOCNtostartwith.
--keyTEXTOCLCAPIkey.
--secretTEXTOCLCAPIsecret.
Package: libhomeseer
libhomeseerPython3 async library for interacting with HomeSeer HS3 and HS4 via JSON and ASCIIRequirements:python3, asyncio, aiohttpDeprecates: pyhs3Install libhomeseer withpython3 -m pip install libhomeseer.Seeexample.pyin the GitHub repo for basic usage instructions.Provides the foundation for the Home Assistant custom integrationhttps://github.com/marthoc/homeseer.