Saravanan666/pypi-org huggingface dataset:
Package: cliqz
Cliqz IntroI wanted to knock this out in a day to solve a problem I had no time budgeted for. Python was the perfect option but I'm a n00b to it, so be cruel.The other quizzes I use, like Anki-droid and Udemy quizzes are not open-source-ish enough. There is some difficulty adding question sets and types. I want questions in a data format that is more verifiable and standard.We all need to learn, so maybe we can learn to trade our learning and the product of our learning.InspirationI was inspired yesterday by this article:How to Build And Publish Command-Line Applications With PythonQuiz SchemaThe Quiz structure is starting to look like this:description:stringduration_minutes:numberquestions:-item:title:stringtype:[missing_items choose_items]false_choices:[text_string_one text_string_two text_string_three]valid_choices:[text_string_one]notes:>Multiline textRoadmapColorize questions[2020-10-06]Minutes left instead of a deadline[2020-10-06]Validate and register answer results.[2020-10-06]Allow select by answer number or letter.[2020-10-07]Tally a list of results at the end of the test.[2020-10-07]Add code tests to the projectAdd several quizzes and expand questions.Move quizzes into an open-source repo of some modern type.[2020-10-08]Variation in handling of various test types not property implemented for missing_item.
Package: cli-rack
CLI RackLightweight set of tools for creating pretty-looking CLI applications in Python. This library tends to simplify and
unify the approach to structuring CLI related code. At the moment it covers:Managing terminal output - verbosity levels, colored output, logger configurationParsing argumentsModular application design - each module could extend argument parser with own commandModules discovery - scanning packages to find cli extension modulesModule availability support - module might declare a method to verify if environment is suitable (e.g. all
dependencies are present). If not, module will be automatically excluded from CLI interfaceSync and Async execution managerMore details and documentation is here:https://github.com/corvis/cli-rackQuick examplesUsing unified CLI output:fromcli_rackimportCLICLI.setup()CLI.print_info("This is just a message to user")CLI.print_warn("This is a warning")CLI.print_error("This is an error message")CLI.print_error(ValueError("This is an exception"))CLI.print_data("This text comes to STDOUT, not STDERR")CreditsDmitry Berezovsky, authorDisclaimerThis module is licensed under MIT. This means you are free to use it in commercial projects.The MIT license clearly explains that there is no warranty for this free software. Please see the included LICENSE file
for details.
Package: clirail
clirailCommand line application for the iRail APIiRail provides an API for Belgian trains.Installationpip install --user --upgrade clirailThen make sure the installed executable will be found. On UNIX-like systems, this means checking that~/.local/bin/isin your PATH.UsageCommandFunctionclirail <station> ['' <moment>]Liveboard (list of trains departing in station)clirail <from_station> <to_station> [<moment>]Route planningclirailAnalyse current timeliness in a few stationsOmit the<moment>for ASAP departures.Give either the station's name or its telegraphic code. Names are matched fuzzily and intuitively.
Telegraphic codes are short and sweet, you can learn them by looking at liveboards.What are these telegraphic codes?A lot of stations have a short code, like FR for Bruges, FBMZ for Brussels-South and MWL for
Aywaille. These come from the days when signalling was done in Morse via the telegraph. Having a
short code for common names in the railway world meant the message took significantly less time to
send. By memorizing the codes for your favourite stations, you can benefit from them in the same
way!More
informationon
the Dutch-language Wikipedia.Licensesclirail code is released under GNU GPLv3+.xdg is released under ISC.Known issuesIf<moment>is just a time, it will be considered as today, even though in some cases it would
make more sense to consider it as tomorrow (e.g. at 11 PM planning a route with departure at 7 AM).DevelopmentTo create a virtualenv and install the dependencies in it:tools/create_venv.pyActivate the virtualenv withsource venv/bin/activate. Then runbin/clirailto run the program.Important: make sure the virtualenv is activated each time you run, otherwise your globalclirailinstallation may be used.If you introduce dependencies, list them insetup.pyunderinstall_requires, and runtools/update_requirements.sh.
Package: clirainbow
# CliRAINBOWEasily print colored text.## Example usage```python>>> from clirainbow import Colorizer, RED, GREEN>>> c = Colorizer()>>> c.print('<hello> <world!>', RED, GREEN)```## Additional info* If you want to insert a literal bracket, double it (e.g. write `<<` instead of `<`)* (this is the same behavior as Python's builtins)* Angle brackets are used instead of the traditional curly brackets in order to prevent clashes with Python's builtin string formatting facilities## ExceptionsAt the moment, three possible exceptions may occur while using the library :1. A color bracket is opened, but never closed (`ColorBracketOpenedButNotClosed`)2. More brackets than colors are given (`MoreBracketsThanColors`)3. More colors than brackets are given (`MoreColorsThanBrackets`)In each case, a readable error message is produced## DisclaimerColors may not appear on certain systems (e.g., Windows) or with certain terminals.## DependenciesCliRAINBOW is built on top of colorama : https://github.com/tartley/colorama## Future plans* Generate code in `colors.py` with a script instead of at runtime* Allow code completion* Remove annoying error messages* Add support for reusing colors by index, e.g. `c.print('<0:oh> <1:hai> <0:there>', colors.RED, colors.BLACK)`* Make it more similar to Python's `format`
Package: cli-rename
renameThis is a command tool as an alternative to PowerRename from PowerToys. Runs in terminal and support mouse operation.Here is a quick example:requirementsdepends on python andtextualinstallpip3 install py-renameLICENSEGNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.
Package: cliriculum
cliriculumCreate your CV/Resume with a simple Python CLI tool.Installationpip install cliriculumWeb DependenciesfontawesomepagedjsBoth are bundled in the package.StructureMain: The right part of the page(s). Place where generally experiences, past jobs, past studies, ... are displayed.
The content gets generated from Markdown file--main=<your Markdown file>Sidebar: Place for brief description of your skills, your contact details etc.
The sidebar is split in two parts:contact: gets generated from JSON file:--contact=<your JSON file for contact details>description: gets generated from markdown file--description=<your description.md>Sidebar supports one page only, however the colour is continued to next pages.Additional metadata:dates.json: A JSON file with keys matching titles ids defining a start and end information. During rendering the dates are added to the top of the paragraph of the level two headings with matching id.Heading ids are parsed uniquely for level two headings. Dates should be under theISO 8601format.Markdown files are parsed withgithub.com/miyuchina/mistletoe.
Metadata is added to Abstract Syntax tree representation before rendering to HTML.JSON SPECRefer to documentation atcliriculum.deserializersto better understand
the implicit JSON structure, specially classesContactandDates.ViewingTo view the HTML page a local server is necessary.
Indeed, modern web browsers disallow
loading CSS and js scripts fromfile:///*.
An error of the formCross-Origin Request blockedis raised
for each file loading attempt.A well-used turnaround is to use cdns or/and use
inline css. See sphinx documentation for example.Currently, I chose not to use this method.RenderingExport to HTMLExport to PDF (via browser or headless mode)Clicliriculum --main="main.md" --description="sidebar.md" --contact="contact.json" --dates="dates.json"Converting to PDFOpen with the generated HTML with your web browser
(Chromium based browsers recommended).
Runctrl+porcmd+pand print to PDF.
The HTML representation of the document relies
onpaged.jsa great library
intended to create PDF compatible HTML books.Note: the content has to be distributed by a local server. SeeViewingfor why.
Python solution:#supposeyousavedresumeinresumedirectory(`cliriculum--destination=resume`)cd resume/python -m http.server --bind 127.0.0.1Or set--pdf-outputflag.cliriculum --main="main.md" --description="sidebar.md" --contact="contact.json" --dates="dates.json" --pdf-output=output.pdfStylingYou can modify style by modifying the generatedstyle.cssfile. However, each time
you overwrite the resume, the modified style.css gets back to default.
To encounter this behaviour you can specify a secondary stylesheet.cliriculum --main="main.md" --description="sidebar.md" --contact="contact.json" --dates="dates.json" --stylesheet="custom.css"ExampleAn example can be viewed atexample/index.htmlLanguage supportEnglish only.WarningNo XSS injection prevention.
Make sure to adopt good security practices if you wish to build a web service from
this package.
Package: clis
Use clis:sudo apt-get install python3-pip
sudo pip3 install clis
sudo iptables -t nat -I PREROUTING -d 169.254.169.254/32 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 8088
clisNow you can boot images downloaded fromhere(filename matches*-disk1.img).Known to work with vivid and trusty.Server will feed your ssh key (~/.ssh/id_rsa.pub) to image and you can log in
via ssh. Default username for ubuntu images isubuntu.It is poosible to specify alternate ssh public key(s) by command line:clis -k ~/.ssh/alternate.pub -k ~/.ssh/backup.pubWhen clis is running you may boot cloud image and see ip address of VM in
logs. Just ssh to this address:ssh ubuntu@192.168.122.42You may want to uninstall cloud-init from VM and turn it to non-cloud image:ubuntu@vm-192-168.122.42:~$ sudo apt-get remove cloud-initWhat is cloud-initCloud image is usual image withcloud-initpackage installed. Cloud-init is
software which trying to access magic urlhttp://169.254.169.254/and get
VM configuration from there. Different versions of cloud-init “protocol”
supported by different versions of images. All this versions are poorly
documented or not documented at all.
Package: clisn
CLiSN <:books:>:sparkles:A collection ofRDFLibnamespaces for theComputational Literary Studies Infrastructureproject.RequirementsPython >=3.11InstallationpipinstallclisnUsageNamespacesCLiSN providesrdflib.Namespacesfor the CLSInfra project.fromrdflibimportGraphfromrdflib.namespaceimportRDFfromclisnimportcrm,crmcls,corpus_basebase_ns=corpus_base("SweDraCor")attrassign_uri=base_ns["attrassign/1"]triples=[(attrassign_uri,RDF.type,crm["E13_Attribute_Assignment"]),(attrassign_uri,crm["P140_assigned_attribute_to"],base_ns["corpus"]),(attrassign_uri,crm["P177_assigned_property_of_type"],crmcls["Z8_corpus_has_corpus_type"])]graph=Graph()fortripleintriples:graph.add(triple)print(graph.serialize())Output:@prefixns1:<http://www.cidoc-crm.org/cidoc-crm/>.<https://swedracor.clscor.io/entity/attrassign/1>ans1:E13_Attribute_Assignment;ns1:P140_assigned_attribute_to<https://swedracor.clscor.io/entity/corpus>;ns1:P177_assigned_property_of_type<https://clscor.io/ontologies/CRMcls/Z8_corpus_has_corpus_type>.NamespaceManagerclisnfeatures a customNamespaceManagerfor CLSInfra namespaces.
This e.g. allows to easily generate a namespacedrdflib.Graphlike so:fromrdflibimportGraph,URIRef,LiteralfromclisnimportCLSInfraNamespaceManager,crmgraph=Graph()CLSInfraNamespaceManager(graph)graph.add((URIRef("https://subject.xyz/example/"),crm["p90_has_value"],Literal("some value")))print(graph.serialize())Output:@prefixcrm:<http://www.cidoc-crm.org/cidoc-crm/>.<https://subject.xyz/example/>crm:p90_has_value"some value".
Package: cli-snakegame
Terminal snake gameA simple snake game right in your terminal using python built-incursespackage.Tools/featuresProductionpython 3.4, 3.5, 3.6, 3.7, 3.8cursesOS compatibilityLinuxMacdockerDevelopmenttravis CIpytestmypyblackpylintflake8UsagePlease pressescorcntl+cto stop the game.Docker installationPlease run following script to obtain application from docker hub:dockerrun-itvyahello/cli-snakegame:0.1.0PYPI installationPlease run following script to obtain latest package from PYPI:pipinstallcli-snakegamePlease executepysnakeCLI tool from your shell:pysnakeRun from source codePlease execute command from the root of your source directory:python-msnakeDevelopment notesRun code analysisIn general static code analysis consists of following tools:black,flake8,pylint,mypyandunittestsaccordingly.
To be able to start static code analysislocallyplease run following script from the root directory of the project:./analyse-code.shinstall-dependenciesAnyway, this script is triggered viaTravis CI.Run unittestsAlso you can run unittests separately. Please run script from the root directory of the project:pytestAfter please opentest-report.htmlfile to see detailed testing reportRelease notesPlease refer toCHANGELOGfile to get more detailsMetaAuthor – Volodymyr Yahello (vyahello@gmail.com).Distributed under theGNUlicense. SeeLICENSEfor more information.You can reach out me at:https://github.com/vyahellohttps://www.linkedin.com/in/volodymyr-yahello-821746127Contributingclone the repositoryconfigure Git for the first time after cloning with yournameandemailpip install -r requirements.txtto install all project dependenciespip install -r requirements-dev.txtto install all project development dependencies
Package: clisnips
clisnipsclisnips is a command-line snippets manager.It provides a graphical command-line user interface in which you can save, search and recall your commands.Installationclisnips requires python 3.11 or higher.1. Install clisnipsThe recommended way is to usepipx:pipxinstallclisnips2. Install shell key-bindings# For bashclisnipskey-bindingsbash# For zshclisnipskey-bindingszshThen:Either open anewshell or source your shell rc file,and type theAlt+skeyboard shortcut to open the snippets library.UsageClisnips stores snippets in a local SQLite database,
using an FTS5 table to enable full-text search.
The search input accepts the wholeFTS5 full-text query syntax.Please have a look atthe docsfor getting started onwriting your own snippets.You may also read thequick-tour,
a small TOML file containing some example snippets.
You can import it in your snippets database by running:clisnipsimportsnippets/quick-tour.tomlIn addition to its TUI, clisnips comes with a bunch of other subcommands
to help you manage your snippets. Please runclisnips --helpto read the CLI documentation.
Package: clisops
Theclisopspackage (pronounced “clie-sops”) provides a python library for runningdata-reductionoperations onXarraydata sets or files
that can be interpreted by Xarray. These basic operations (subsetting, averaging and
regridding) are likely to work where data structures are NetCDF-centric, such as those
found in ESGF data sets.clisopsis employed by thedaopslibrary to perform
its basic operations oncedaopshas applied any necessaryfixesto data in order
to remove irregularities/anomalies. Users are recommended to investigate usingdaopsdirectly in order to access thesefixeswhich may affect the scientific credibility of
the results.clisopscan be used stand-alone to read individual, or groups of, NetCDF files directly.Free software: BSDDocumentation:https://clisops.readthedocs.io.FeaturesThe package provides the following operations:subsetaverageregridOnline DemoYou can try clisops online using Binder (just click on the binder link below),
or view the notebooks on NBViewer.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.Cookiecutter:https://github.com/audreyr/cookiecuttercookiecutter-pypackage:https://github.com/audreyr/cookiecutter-pypackage
Package: clista
clista - CLI to STreamlit AppCreate interactive web app from any CLI with streamlitStatusVery early alpha version, tested only withhey.Installpip install clistaWhyThere are different ways to do task "benchmark a website"Type the command to run it then copy the output and write to the report.Write a script to run the command 10 times then copy the output and write to the report.Learn Jupyter and run the command from there, export the notebook as Playbook and use as report.Write a webapp to run the command and display the result (take 2 months, and 5 people).Write a streamlit app and let who give the task run themselves, as they need.Use-casesBuild one-time-used internal toolBuild internal toolBuild amazing tool (TODO later on this)UsageExample with heyheyis a CLI HTTP load generator, likeapache bench.$hey2>&1|clista
Wrotestapp.py,pleasecopyandeditasneededthenrunstreamlitrunstapp.py
NOTE:rerunwouldoverwritestapp.py

$streamlitrunstapp.pyYoucannowviewyourStreamlitappinyourbrowser.LocalURL:http://localhost:8501NetworkURL:http://192.168.100.4:8501Openstapp.py, removes undesired options and run to bench itself:
Package: clistyle
ClistylePython3 library for coloring command line interface.install:pip install clistyleusage:fromclistyleimportColorc=Color()print(c.YELLOW+"Test Colors"+c.RESET)print(c.BLUE+"Test Colors"+c.RESET)print(c.GREEN+"Test Colors"+c.RESET)print(c.CYAN+"Test Colors"+c.RESET)print(c.MAGENTA+"Test Colors"+c.RESET)print(c.RED+"Test Colors"+c.RESET)Output:
Package: cli-support
CLI Support for PythonPython library to read Component License Information (CLI) files. They can be
created byFOSSologyand stored inSW360.For more information about the CLI file format, please have a look atComponentLicenseInformation.md.UsageInstallationThis project is available asPython package on PyPi.org.Install cli_support and required dependencies:pipinstallcli_supportRequired PackagesnoneUsing the APIStart using the API:importcli_supportclifile=cli_support.CLI.CliFile()clifile.read_from_file("cli_filename")ContributeAll contributions in form of bug reports, feature requests or merge requests are welcome!Please use properdocstringsto document
functions and classes.Extend the testsuitepoetry run pytestwith the new functions/classesBuildBuilding Python packageFor building the library, you needPoetry. Build is then
simply triggered usingpoetrybuildThis creates the source and wheel files indist/subdirectory -- which can then
be uploaded or installed locally usingpip.TestStart the complete test suite or a specific test case (and generate coverage report):poetryrunpytestorpoetryruncoveragerun-mpytest
poetryruncoveragereport-m--omit"*/site-packages/*.py"poetryruncoveragehtml--omit"*/site-packages/*.py"DemoThe scriptshow_licenses.pyshows how to use the library to retrieve some information
of a given CLI file.python./show_licenses.py./test/testfiles/CLIXML_MIT_simple.xmlLicenseThe project is licensed under the MIT license.SPDX-License-Identifier: MIT
Package: clisy
A command line utility to open browser for when you want to search something across various search optionsDescriptionThis is a simple utility to open browser from command line when you want to search something from various search options. Currently, it supports DuckDuckGo. But quickly, will plan to add the following options as well :DuckDuckGo (“ddg”)GOOGLE (“g”)WIKIPEDIA (“w”)WIRECUTTER (“wc”)AMAZON (“a”)CREATIVE_COMMONS (“cc”)IMDB (“imdb”)SWIGGY (“sw”)InstallationRun the following command to install clisypip install clisyOnceclisyis installed, you get a command line utility calledclisycp.UsageIt is simple command line utility. To see the usage, you can type the followingclisycp -hAlternatively, here is the usage from version0.0.3so farusage: clisycp [-h]
           [--ddg <query_string> | -g <query_string> | -w <query_string> | --wc <query_string> | -a <query_string> | --cci <query_string> | --imdb <query_string> | --sw <query_string>]
           [-v] [-vv]

CLI Search

optional arguments:
  -h, --help            show this help message and exit
  --ddg <query_string>, --duck-duck-go <query_string>
                        Search in DuckDuckGo
  -g <query_string>, --google <query_string>
                        Search in Google
  -w <query_string>, --wikipedia <query_string>
                        Search in Wikipedia
  --wc <query_string>, --wirecutter <query_string>
                        Search in Wirecutter
  -a <query_string>, --amazon <query_string>
                        Search in Amazon
  --cci <query_string>, --creative-commons-image <query_string>
                        Image Search in Creative Commons
  --imdb <query_string>
                        Search in IMDb
  --sw <query_string>, --swiggy <query_string>
                        Search in Swiggy
  -v, --verbose         set loglevel to INFO
  -vv, --very-verbose   set loglevel to DEBUGNoteThis project has been set up using PyScaffold 4.0.2. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: clisya
ClisyaVersión 1.1Una pequeña librería de zonas horarias para generar banderas compatibles en email, redes, paginas web, etc.Actualmente se encuentra disponible para generar las zonas horarias de los siguientes países:México : 🇲🇽  | Colombia : 🇨🇴  | Perú : 🇵🇪  | Chile : 🇨🇱  | Argentina : 🇦🇷 | España : 🇪🇸 | Uruguay : 🇺🇾 |Ecuador : 🇪🇨 | Guatemala : 🇬🇹 | El Salvador : 🇸🇻 | Bolivia : 🇧🇴 | Paraguay : 🇵🇾 | RepúblicaDominicana : 🇩🇴 | Panamá : 🇵🇦 | Costa Rica : 🇨🇷 | Honduras : 🇭🇳 | Venezuela : 🇻🇪 | Nicaragua : 🇳🇮 | Cuba : 🇨🇺 | US_Pacific : 🇺🇸 |InstalaciónpipinstallclisyaUso de Clisya.fromclisyaimportScheduleimportclisyaAgregar fecha y hora.Es tan sencillo como solo agregar la fecha y hora al métododate_to_convert,se generara en base a la fecha y hora de su ordenador.Se asume la hora y fecha registrada en horarioGMT-5.#Declarar instancia del objectoclisya=Schedule()# Pasar argumento (datetime) Se asume la hora y fecha registrada en horario **GMT-5**clisya.date_to_convert("2021-05-12 18:00:00")Pasar elementos a la listacountry.Puede agregar el nombre de los países que desea, filtramos el resultado por su preferencia.Si desea conocer la hora en algún país en particular, ingrese su nombre en la listacountry.NOingresar tildes en los nombres, de lo contrario presentara un error.clisya=Schedule()clisya.date_to_convert("2021-05-12 18:00:00",country=['colombia','peru','España','Mexico'])Contribuir.Te invitamos en caso de que encuentres algún bug o tengas feedback de alguna parte declisya.Está librería se construyo basada en el repositorioHorariosde Freddy Vega.
Package: clisync
CliSyncA python package to sync module and command line tools.CliSyncInstallationUsageInclude all class methodsSpecify the method to includeDistribution on pypiInstallationpipinstallclisyncUsageThis package is used to create a command line tool from a module. The command line tool is created using theclickpackage.It is intended for a specific use case with singleton classes. The static methods of the class are included in the command line tool.A working and complete demo is available in thedemodirectory. A readme file is available to explain how to install and use the demo.Include all class methodsclassObject():@staticmethoddefcreate(a:int,b:str,c:Optional[float]=1.0)->str:"""This is a docstring for the create method."""returnf'{a}{b}{c}'fromclisyncimportCliSynccli=CliSync(module='my_module',cls='Object',requires_decorator=False)Thecliis aclick.MultiCommandobject that can be used to create a command line tool.Specify the method to includeUse the decorator@clisync.includeto include a method in the command line tool.importclisyncclassObject():@staticmethod@clisync.includedefmethod():"""This method is included because of the decorator."""passfromclisyncimportCliSynccli=CliSync(module='my_module',cls='Object')Distribution on pypiThe distribution on done with continuous integration using github actions. The secretPYPI_API_TOKENis set in the repository settings.Then, to trigger the release, we need to create a tag with the version number. The release will be automatically created and the package will be uploaded to pypi.For example, to release version 1.0.0, we need to do the following:gittagv1.0.0
gitpushoriginv1.0.0