Saravanan666/pypi-org huggingface dataset:
Package: legaltechtools
legaltechtoolsAn open source library that can be used to scrape and perform data analysis on legal tech companiesContentsAboutInstallationAuthorsAboutThe library consists of two different classes, one intended for scraping and one intended for data analysis.ScrapingThe scraping class can be used obtain information on legal tech companies including  company urls, social media urls, and the subsets of legal-tech that a particular company falls into.
Additionally, existing information can be verified by callingScrapingTools.verify_url()Data AnalysisThe data analysis class can be used to uncover insights about data that has already been collected. Some of the metrics that can be found include determining the distribution of companies by country, the average success of a legal-tech company in a particular region, countries where new legal-tech companies are being founded, and the number of legal-tech companies founded per year.InstallationThe library can easily be installed via pip:pip install legaltechtoolsAuthorsThis library was written by Neel Kandlikar, Neeraj Rattehalli, and David Fletcher under the mentorship of Dr. Pieter Gunst.
Package: legendador
LegendadorSintaxeUsage: legendador [OPTIONS] URLOptions:
-l, --language TEXT  linguagem falada no video
-t, --to TEXT        linguagem da legenda
-m, --mobile TEXT    faz o video na horizontal com um fundo dado como
parametro
--help               Show this message and exit.Exemplo de Execuçãolegendador -l pt -t enhttps://www.youtube.com/shorts/yTk8i1CYvmgPossiveis errosErro no google translator : AttributeError: 'NoneType' object has no attribute 'group'Veja o seguinte link para resolver o problemahttps://stackoverflow.com/questions/52455774/googletrans-stopped-working-with-error-nonetype-object-has-no-attribute-group
Package: legendarium
LegendariumPython library to handle SciELO`s bibliographic legendLicense: BSDCompatible With: python 3.3+See Build:https://travis-ci.org/scieloorg/legendariumDevelop API Usage>>>from legendarium import Legendarium
>>>leg_dict = {'acron_title': 'Rev.Mal-Estar Subj', 'year_pub': '2011', 'volume': '67', 'number': '9', 'fpage': '154', 'lpage':'200', 'article_id':'e00120416'}
>>>leg = Legendarium(**leg_dict)
>>>leg.stamp
>>>Rev.Mal-Estar Subj 2011;67(9):154-200For develop versionpip install -e git+git@github.com:scieloorg/legendarium#egg=legendarium
Package: legendarycli
# legendaryCLIA command-line interface for the Simple CLI project using :
1- Click, Python, termcolor, pyfiglet, tqdm## InstallationThis is a simple CLI to show my CV and resume## Installationpip install legendarycli## Usagelegendarycli –help [HELP]legendarycli –gh [Navigate you to my Github Profile]legendarycli –li [Navigate you to my Linkedin Profile]legendarycli –cv –[Argument*/OS*/] [Specify which OS [Mac Or Win] you are using]legendarycli –about [Sample Text about me :) ]## ContributingPull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.Please make sure to update tests as appropriate.
Package: legend-daq2lh5
legend-daq2lh5JSON-configurable conversion of digitized data intoLEGEND HDF5,
with optional data pre-processing viadspeedand data compression vialegend-pydataobj.Currently supported DAQ data formats:FlashCamCoMPASSORCA, reading out:FlashCamStruck SIS3302Struck SIS3316
Package: legend-delta
Legend on Delta LakeAn extension to theLegendframework for spark / delta lake based environment, combining
best of open data standards with open source technologiesIn addition to the JDBC connectivity enabled to Databricks from thelegend-engineitself, this project helps
organizations define data models that can be converted into efficient data pipelines, ensuring data being queried
is of high quality and availability. Raw data can be ingested as stream or batch and processed in line with the
business semantics defined from the Legend interface. Domain specific language defined in Legend Studio can be
interpreted as a series of Spark SQL operations, helping analysts createDelta Laketables that
not only guarantees schema definition but also complies with expectations, derivations and constraints defined by
business analysts.UsageMake sure to have the jar file oforg.finos.legend-community:legend-delta:X.Y.Zand all its dependencies available in
your spark classpath and a legend data model (version controlled on gitlab) previously compiled to disk or packaged
as a jar file and available in your classpath. For python support, please add the corresponding library from pypirepo.pipinstalllegend-delta==X.Y.ZWe show you how to extract schema, retrieve and enforce expectations and create delta tables in bothscalaandpythonsample notebooks.AuthorDatabricks, Inc.LicenseCopyright 2021 Databricks, Inc.Distributed under theApache License, Version 2.0.SPDX-License-Identifier:Apache-2.0
Package: legendgram
This is a small bit of unittested, reproducible code to provide legendgrams.
Legendgrams are map legends that visualize the distribution of observations by color in a given map:Legendgrams are distributed by PySAL, an open source cross-platform library of spatial analysis functions
written in Python. It is intended to support the development of high level
applications for spatial analysis.To use legendgrams, simply install the package using pip:$pipinstalllegendgramThen, apply the function to the figure/axis you want to have a legendgram:>>>importpysalasps,geopandasasgpd,matplotlib.pyplotasplt>>>fromlegendgramimportlegendgram>>>data=gpd.read_file(ps.examples.get_path('south.shp'))>>>data.crs={'init':'epgs:4269'}>>>data.to_crs(epsg=5070)>>>f,ax=plt.subplots()>>>data.plot('DV80',k=10,ax=ax,scheme='Quantiles')>>>bins=ps.Quantiles(data['DV80'].values,k=10).bins>>>fromlegendgramimportlegendgram>>>importpalettable.matplotlibaspalmpl>>>legendgram(f,ax,data['DV80'],bins,pal=palmpl.Viridis_10,legend_size=(.5,.2),# legend size in fractions of the axisloc='upper left'# matplotlib-style legend locationsclip=(2,10)# clip the displayed range of the histogram)An example notebook isprovidedas well.LicenseThis is licensed under the 3-Clause BSD license.
Refer to the license file for more details.
Package: legend-pygeom-optics
legend-pygeom-opticsThis package contains a collection of optical properties of materials used in
the LEGEND experiment.As a common interface, each optical property gets its own defining function in
the material's module. Those functions can be used directly to just retrieve the
value(s) of the property. Most property definitions contain unit information via
thepintpackage. For a full list of defined properties refer to thepackage documentation.To ease the use in Geant4-based simulations, every module also provides
functions to be used withpyg4ometry.
Package: legendyoutube
fromyoutubepyimport*frompytubeimportYouTubeimporteelfrompywebioimport*frompywebioimportstart_serverfrompywebio.inputimport*frompywebio.outputimport*eel.init("web")#ask for the link from userlink=input("Enter the link of YouTube video you want to download:  ")yt=YouTube(link)#Showing detailsprint("Title: ",yt.title)print("Number of views: ",yt.views)print("Length of video: ",yt.length)print("Rating of video: ",yt.rating)#Getting the highest resolution possibleys=yt.streams.get_highest_resolution()#Starting downloadprint("Downloading...")ys.download()print("Download completed!!")eel.start("index.html")start_server(port=8080)
Package: leggen
💲 leggenAn Open Banking CLI.This tool aims to provide a simple way to connect to banks using the GoCardless Open Banking API.Having a simple CLI tool to connect to banks and list transactions can be very useful for developers and companies that need to access bank data.Having your bank data in a database, gives you the power to backup, analyze and create reports with your data.🛠️ TechnologiesPython: for the CLIGoCardless Open Banking API: for connecting to banksSQLite: for storing transactions, simple and easy to useMongoDB: alternative store for transactions, good balance between performance and query capabilitiesOfelia: for scheduling regular syncs with the database when using Docker✨ FeaturesConnect to banks using GoCardless Open Banking APIList all connected banks and their statusList balances of all connected accountsList transactions for all connected accountsSync all transactions with a MongoDB database🚀 Installation and ConfigurationIn order to useleggen, you need to create a GoCardless account. GoCardless is a service that provides access to Open Banking APIs. You can create an account athttps://gocardless.com/bank-account-data/.After creating an account and getting your API keys, the best way is to use thecompose file. Open the file and adapt it to your needs. Then run the following command:$dockercomposeup-dThe leggen container will exit, this is expected. Now you can run the following command to create the configuration file:$dockercomposerunleggeninitNow you need to connect your bank accounts. Run the following command and follow the instructions:$dockercomposerunleggenbankaddTo sync all transactions with the database, run the following command:$dockercomposerunleggensync👩‍🏫 Usage$ leggen --help
Usage: leggen [OPTIONS] COMMAND [ARGS]...

  Leggen: An Open Banking CLI

Options:
  --version   Show the version and exit.
  -h, --help  Show this message and exit.

Command Groups:
  bank  Manage banks connections

Commands:
  balances      List balances of all connected accounts
  init          Create configuration file
  status        List all connected banks and their status
  sync          Sync all transactions with database
  transactions  List transactions for an account⚠️ CaveatsThis project is still in early development, breaking changes may occur.
Package: legibilidad
Basado en:https://github.com/amunozf/legibilidad/Legibilidad, se refiere a la facilidad para leer un texto.Este paquete realiza el cálculo en base a diversas fórmulas como:Fernández HuertaGutiérrezCrawfordSzigriszt-PazosInfleszLegibilidad µInstalaciónpip install legibilidadUsofromlegibilidadimportlegibilidadtexto='Legibilidad, se refiere a la facilidad para leer un texto'print(legibilidad.inflesz(legibilidad.szigriszt_pazos(texto)))Más informaciónRecomiendo visitar el website del autor original:legible.es
Package: leginorma
LeginormaPython wrapper for Legifrance APIQuick StartfromleginormaimportLegifranceText,LegifranceClientclient=LegifranceClient('client_id','client_secret')text=LegifranceText.from_dict(client.consult_law_decree('JORFTEXT000034429274'))InstallationStable Release:pip install leginormaDevelopment Head:pip install git+https://github.com/envinorma/leginorma.gitDocumentationFor full package documentation please visitenvinorma.github.io/leginorma.DevelopmentSeeCONTRIBUTING.mdfor information related to developing the code.MIT license
Package: legion-cli
Legion CLICommandline Utilities for the Legion Alerting and Monitoring SystemSetup & UsageInstallationpipinstall-Ulegion-cli--userConfigurationTODOUsageThe key reference for usinglegion-cliis:legion-cli--helpDevelopmentStandardsBe excellent to each otherCode coverage must be at 100% for all new code, or a good reason must be provided for why a given bit of code is not covered.Example of an acceptable reason: "There is a bug in the code coverage tool and it says its missing this, but its not".Example of unacceptable reason: "This is just exception handling, its too annoying to cover it".The code must pass the following analytics tools. Similar exceptions are allowable as in rule 2.pylint --disable=C0111,W1203,R0903 --max-line-length=100 ...flake8 --max-line-length=100 ...mypy --ignore-missing-imports --follow-imports=skip --strict-optional ...All incoming information from users, clients, and configurations should be validated.All internal arguments passing should be typechecked whenever possible withtypeguard.typecheckedDevelopment SetupUsingpoetryinstall from inside the repo directory:pdminstallIDE SetupSublime Text 3curl-sSLhttps://gitlab.com/-/snippets/2385805/raw/main/pdm.sublime-project.py|pdmrunpython>legion-cli.sublime-projectTestingAll testing should be done withpytestwhich is installed with thedevrequirements.To run all the unit tests, execute the following from the repo directory:pdmrunpytestThis should produce a coverage report in/path/to/legion-cli/htmlcov/While developing, you can usewatchexecto monitor the file system for changes and re-run the tests:watchexec-r-epy,yamlpdmrunpytestTo run a specific test file:pdmrunpytesttests/unit/test_config.pyTo run a specific test:pdmrunpytesttests/unit/test_config.py::test_config_loadingFor more information on testing, see thepytest.inifile as well as thedocumentation.Integration TestingFor integration testing, this code usestestcontainers-rabbitmq. In order to enable this, you will need to install docker, and ensure that your user has the ability to interact with the docker service:sudoaptinstalldocker
sudogroupadddocker# may fail if the docker group already existssudousermod-aGdocker$USERnewgrpdocker
dockerrunhello-world# verify that everything is working well
Package: legiond
LegionDThe monitoring service daemon for Legion - a distributed, scalable, and fault-tolerant alerting and monitoring systemSetup & UsageInstallationTODOConfigurationTODOUsageThe key reference for usinglegiondis:legiond--helpDevelopmentStandardsBe excellent to each otherCode coverage must be at 100% for all new code, or a good reason must be provided for why a given bit of code is not covered.Example of an acceptable reason: "There is a bug in the code coverage tool and it says its missing this, but its not".Example of unacceptable reason: "This is just exception handling, its too annoying to cover it".The code must pass the following analytics tools. Similar exceptions are allowable as in rule 2.pylint --disable=C0111,W1203,R0903 --max-line-length=100 ...flake8 --max-line-length=100 ...mypy --ignore-missing-imports --follow-imports=skip --strict-optional ...All incoming information from users, clients, and configurations should be validated.All internal arguments passing should be typechecked whenever possible withtypeguard.typecheckedDevelopment SetupUsingpoetryinstall from inside the repo directory:poetryinstallThis will set up a virtualenv which you can always activate with eitherpoetry shellor run specific commands withpoetry run. All instructions below that are meant to be run in the virtualenv will be prefaced with(legiond)$IDE SetupSublime Text 3curl-sSLhttps://gitlab.com/-/snippets/2066312/raw/master/poetry.sublime-project.py|poetryrunpythonDevelopmentTestingAll testing should be done withpytestwhich is installed with thedevrequirements.To run all the unit tests, execute the following from the repo directory:(legiond)$pytestThis should produce a coverage report in/path/to/dewey-api/htmlcov/While developing, you can usewatchexecto monitor the file system for changes and re-run the tests:(legiond)$watchexec-r-epy,yamlpytestTo run a specific test file:(legiond)$pytesttests/unit/test_cli.pyTo run a specific test:(legiond)$pytesttests/unit/test_cli.py::test_cli_basicsFor more information on testing, see thepytest.inifile as well as thedocumentation.
Package: legions
[🌐📩]LegionsEVM Node Security ToolkitLegions is a handy toolkit for (security) researchers poking around EVM (Ethereum Virtual Machine) nodes and smart contracts, now with a slick command-line interface, with auto complete commands and history.Features:Node detection(getnodeinfo)Detect the type of the Node, Chain, and NetworkPeer Count, Listening, Synching, and Mining statusGas PriceetcWeb3 API enumeration(investigate)AccountsRead coinbase, and exposed accounts of the node(intrusive = True) will try to create accounts on the nodeAdminEnumerates web3.admin endpointsSign (WIP)Enumerates signing functionalities (web3.sign)ENS Queries(ens)List Names owned by an addressList Subdomains of an addressQuery individual namesQueryat latest/specific block number (query)Balance of an addressBlock detailsBytecode of the smart contractRead storage of the smart contract (defaultcount=10reads the first 10 slots)command, which you can pass any RPC method with argsECRecover of a signatureConversions(toWei, fromWei, keccak, toChecksumAddress, etc)This tool is in beta and a work in progressDemoMain FunctionalityENS (Ethereum Name Service)InstallationRequirePython 3.6.pipinstalllegionsOr directly from source code:gitclonehttps://github.com/shayanb/LegionscdLegions
pipinstall.UsageIf installed locally:pythonlegions.pyor if installed globally:legionsFunctions BreakdownCommand[Subcommand]DescriptionsethostSetup the Web3 connection (RPC, IPC, HTTP)(default to infura mainnet)getnodeinfoInformation about the connected node(runsetnodebefore this)conversionsConversions possible to do with Web3fromWeiConverts the input to ether (tocurrencydefault to ether)toWeiConverts the input to Wei (fromcurrencydefault to ether)keccakkeccak hash of the inputtoBytesConverts the input to hex representation of its BytestoChecksumAddressConverts the input to Checksum AddresstoHexConverts the input text to HexfromWeiConverts the input to ether (or specified currency)queryQuery Blockchain (Storage, balance, etc)balanceGet Balance of an accountblockGet block details by block numbercodeGet code of the smart contract at addressecrecoverGet address associated with the signature (ecrecover)BUGGYstorageRead the storage of a contract (countdefault = 10)commandManual RPC method with argsinvestigateInvestigate further in the node(e.g. check if accounts are unlocked, etc)accountsInvestigate accounts (e.g. check if accounts are unlocked, etc)adminInvestigate accounts (e.g. functionalities under the admin_ namespace)signInvestigate signature functionalitiesensDo Ethereum Name Service queries (supported on the mainnet only)toNameTransform an address to the ENS nametoAddressTransform an ENS name to the Ethereum public addressinfoGet details about an ENS nameversionPrint Versions(If connected to a node it will print the host version too)AcknowledgementsInteractive shell:python-nubiaWeb3.pyNode data provided bychainid.networkENS data provided by ENS GraphQL datasetTODO:eth 2.0 API implementationFixVerboseStatus bar (It does not change fromOFF)inline TODOs (tons)resolve mappings from storage (using ABI?)Get tokens Balance (etherscan or other explorer API)
Package: legion-utils
Legion UtilsUtilities for Legion Reporters and MonitorsUsageTODOInstallation & SetupTo install legion-utils withpipexecute the following:pipinstall/path/to/repo/legion-utilsIf you don't want to re-install every time there is an update, and prefer to just pull from the git repository, then use the-eflag.DevelopmentStandardsBe excellent to each otherCode coverage must be at 100% for all new code, or a good reason must be provided for why a given bit of code is not covered.Example of an acceptable reason: "There is a bug in the code coverage tool and it says its missing this, but its not".Example of unacceptable reason: "This is just exception handling, its too annoying to cover it".The code must pass the following analytics tools. Similar exceptions are allowable as in rule 2.pylint --disable=C0111,W1203,R0903 --max-line-length=100 ...flake8 --max-line-length=100 ...mypy --ignore-missing-imports --follow-imports=skip --strict-optional ...All incoming information from users, clients, and configurations should be validated.All internal arguments passing should be typechecked whenever possible withtypeguard.typecheckedDevelopment SetupUsingpoetryinstall from inside the repo directory:poetryinstallThis will set up a virtualenv which you can always activate with eitherpoetry shellor run specific commands withpoetry run. All instructions below that are meant to be run in the virtualenv will be prefaced with(legion-utils)$IDE SetupSublime Text 3curl-sSLhttps://gitlab.com/-/snippets/2066312/raw/master/poetry.sublime-project.py|poetryrunpythonTestingAll testing should be done withpytestwhich is installed with thedevrequirements.To run all the unit tests, execute the following from the repo directory:(legion-utils)$pytestThis should produce a coverage report in/path/to/dewey-api/htmlcov/While developing, you can usewatchexecto monitor the file system for changes and re-run the tests:(legion-utils)$watchexec-r-epy,yamlpytestTo run a specific test file:pytesttests/unit/test_core.pyTo run a specific test:pytesttests/unit/test_core.py::test_helloFor more information on testing, see thepytest.inifile as well as thedocumentation.
Package: legipy
legipyPython client for thelegifrance.gouv.frwebsite.CLI usageThe command-line scriptlegipygives access to service commands from the command line and outputs data in JSON format.LegislatureAccess to thelegislature.List legislatureslegipylegislaturesList published lawslegipypublished_laws[--legislature=CURRENT]List pending law projectslegipylaw_projects[--legislature=CURRENT]List pending law proposalslegipylaw_proposals[--legislature=CURRENT]List common laws ("Lois dites")legipycommon_lawsShow specific lawlegipylawJORFDOLE000024106525Applicable codesAccess to theapplicable codes.List applicable codeslegipycodesShow code detailslegipycodeLEGITEXT000006074075
legipycode--date-pub2018-05-01LEGITEXT000006074075Show code section detailslegipycode_sectionLEGITEXT000006074075LEGISCTA000006107991
legipycode--date-pub2018-05-01LEGITEXT000006074075LEGISCTA000006107991
Package: legistream-backend
legistream_backendThis is the Python backend for legistream.Install withpip:pip install legistream-backendView project on PyPI:https://pypi.org/project/legistream-backend/.UsageThis package uses different modules to get live stream data from the various Australian parliaments.Currently supported parliaments:Australian Capital TerritoryFederalNew South WalesNorthern TerritoryQueenslandSouth AustraliaTasmaniaVictoriaWestern AustraliaSetupInstallpoetry:pip3installpoetryInstall/update dependencies withpoetry:poetryupdateInstallffmpeg:Linuxsudo apt install ffmpegMacInstall withbrew:brew install ffmpegWindowsOfficial Windows builds offfmpegcan be foundherePrint out stream URLs:Every parliament module returns data the same way, Victoria is used here only for example purposes.Thestream_urlsproperty can be used to return streams as adict:fromlegistream_backend.vicimportStreamprint(Stream().stream_urls)Each URL can be returned individually by using the[house]_stream_urlproperty (e.glower_stream_url)print(Stream().lower_stream_url)Check if a parliament's house is live:Similarly, you can check the status of a live stream with the[house]_is_liveboolean property.if(Stream().lower_is_live):print('The lower house of Victoria is currently live.')else:print('The lower house of Victoria is not currently live.')NotesRun all scripts usingpoetry:poetryrunpython3[file].pyThe South Australia stream extractor uses code adapted from thestreamlink ustreamtv implementation.