Saravanan666/pypi-org huggingface dataset:
Package: cli-user
cli_user (v0.0.7)DESCRIPTION_SHORTSend commands into system terminalDESCRIPTION_LONGdesigned to send commands into os terminalFeaturessend commands into OS terminalcheck if cli commands are accessible (special utilities is installed)access to standard parts of result in a simple ready-to-use form (stdout/stderr/retcode/full state)use batch timeout for listtill_first_truecounter/counter_in_listLicenseSee theLICENSEfile for license rights and limitations (MIT).Release historySee theHISTORY.mdfile for release history.Installationpip install cli-userImportfromcli_userimport*USAGE EXAMPLESSee tests and sourcecode for other examples.1. example1.pyfromcli_userimport*victim=CliUser()victim.send("ping localhost",timeout=0.1)victim.print_state()"""==================================================[#####################ERROR#####################]self.counter=1self.counter_in_list=0self.last_cmd='ping localhost'self.last_duration=0.109938self.last_finished=Trueself.last_finished_success=Falseself.last_retcode=None--------------------------------------------------self.last_stdout=--------------------------------------------------self.last_stderr=--------------------------------------------------self.last_exx_timeout=Exx_CliTimeout("TimeoutExpired('ping localhost', 0.1)")=================================================="""victim.send("python --version",timeout=1)victim.print_state()"""==================================================self.counter=2self.counter_in_list=0self.last_cmd='python --version'self.last_duration=0.087947self.last_finished=Trueself.last_finished_success=Trueself.last_retcode=0--------------------------------------------------self.last_stdout=|'Python 3.12.1'|''--------------------------------------------------self.last_stderr=--------------------------------------------------self.last_exx_timeout=None=================================================="""
Package: clive
CLIVEWhen following a Reddit live feed, who wants to have a big ugly webpage open
all the time? Not me, and perhaps not you either.So I started to write a command line interface that prints messages
as they arrive. It's still alittlerough as I put this together in a few
hours, so consider it a work in progress. Contributions and suggestions
welcome and encouraged.If you are wondering whyclive, it's a  blend ofcliandlive.Installation$ pip install cliveUsage$ clive wmk50bsm9vt3Wherewmk50bsm9vt3is the last part of the live feed URL from Reddit.LicenseThe MIT License (MIT)
Copyright (c) 2016 Sven SteinbauerPermission 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: clive-log
CLIVE_LOGThis is a simple library for quick python debugging of live data streams.  It's intended to run in the command line only
and to be very compact.  The primary goals of the project are to not use any external dependencies (besides the python libraries)
and to try and keep the total LOC under ~1000 to make it accessible.Currently supported fields are:Text fieldsCell fieldsGraph fieldsGetting startedCheck the examples folder for some basic demos on how to use this library.The general usage is:importclive_logcontext=clive_log.Context("test")context.add_text_field("text_field1")whileTrue:context.write_text_field("text_field1","new text to write")context.display()Known IssuesThere are still some issues with the system, namely:artifacts when resizingnonfunctional in terminal multiplexersFuture FeaturesSome things I would like to eventually add:config parameters for how to print everythingresize cleanupprogress barstablesLicenseMIT License
Package: clivenv
CLI_VENVFast access/manage tovirtualenvbetween different python versions.Likeuser@host$ . venv
Virtual env: Python3.6.4
(3.6.4) user@host$ python -V
Python 3.6.4
(3.6.4) user@host$ unvenv
user@host$Install bypip install cli_venvExampleUse/create default/specific virtualenv in this directory. venv

    Virtual env: Python2.7.13
    Environment not exists.
    Create one? [Y/n]y
    ...
    (2.7.13) duck@host:~/venv$. venv python3

    Virtual env: Python3.6.4
    Environment not exists.
    Create one? [Y/n]y
    ...
    (3.6.4) duck@host:~/venv$Sync packages in other virtualenv to current virtualenvvenv syncExit virtual envunvenvDelete default/specific virtualenvenv delete 
    venv delete python3
Package: cli-venv
CLI_VENVFast access/manage tovirtualenvbetween different python versions.Likeuser@host$ . venv
Virtual env: Python3.6.4
(3.6.4) user@host$ python -V
Python 3.6.4
(3.6.4) user@host$ unvenv
user@host$Install bypip install cli_venvExampleUse/create default/specific virtualenv in this directory. venv

    Virtual env: Python2.7.13
    Environment not exists.
    Create one? [Y/n]y
    ...
    (2.7.13) duck@host:~/venv$. venv python3

    Virtual env: Python3.6.4
    Environment not exists.
    Create one? [Y/n]y
    ...
    (3.6.4) duck@host:~/venv$Sync packages in other virtualenv to current virtualenvvenv syncExit virtual envunvenvDelete default/specific virtualenvenv delete 
    venv delete python3
Package: clivo
AboutCommandLineInterface toControlValues ofObjects and trigger events with user inputs.Installgitclonehttps://github.com/ovinc/clivo
pipinstall-eclivoInstall must be done from a git repository (or from PyPI) to get version information.Quick startfromclivoimportCommandLineInterfacecli=CommandLineInterface(objects,events)SeeExample.ipynband docstrings ofCommandLineInterfaceon how to use.Misc. infoTestingUse theExample.ipynbnotebook.Python requirementsPython >= 3.6AuthorOlivier Vincent(ovinc.py@gmail.com)License3-Clause BSD (seeLICENSEfile).
Package: cliwaka
A command-line interface forWakatime.com.
It logs user’s durations, heartbeats, stats, summary and more.Installation$ pip install cliwakaOr download fromsource,cdto it and build usingpython setup.py installRequirementsRequestslibraryWakatime.comaccount and its api keyUsagecliwakadisplays a help text when used with-hor–help.$ cliwaka -h
usage: Cliwaka [-h] [-b] [-d] [-t] [-s] [--leaderboard] [-v] [-V]

A command line tool for wakatime.com.

optional arguments:
-h, --help       show this help message and exit
-b, --heartbeat  show user's latest heartbeat
-d, --duration   show user's logged time for a given day
-t, --stats      show user's current stats.
-s, --summary    show user's logged time.
--leaderboard    display the public leaderboard
-v, --verbose    toggle verbose on (default is off)
-V, --version    show program's version number and exit

For more information see http://github.com/shashankgroovy/cliwakaUpgrade$ pip install -U cliwakaLicenseCliwaka is released under theGNU GPL License v3
Package: cli-weather-app
WEATHER CLI APPThis weather CLI app was built using standard Python modules and
OpenWeatherMap API to retrieve weather conditions of cities
around the world.It takes in city as an argument and the temperature can be defined
at the start of the program.INSTALLATIONThe weather app can be installed via Pippipinstallweather-app-cliUSAGETo run this app, ensure Python 3.5+ is available on your system.python3-mweather{city}{-i}where {city} is the name of the city you would like to check
and {-i} is used to set temperature to Celsius or Fahrenheit.REFERENCEThis app was constructed in relation to atutorialon RealPython.
Few modifications were made based on the author's preference😉.AUTHORProject was made with ❤ byEric Alaribe
Package: cliwiper
cliwiperA Basic cli cleaner in the form as a cross-platform Python module that provides a function which clears the terminal.This is a simpler alternative to defining this function on your own.InstallationTo install with pip, or pipx run:pip install cliwiperpipx install cliwiperUsagesfrom cliwiper import cliwipercliwiper.wiper()orfrom cliwiper.cliwiper import wiperwiper()LicenseThis project is licensed under the terms of theMIT license.
Package: clix
clixAn easy to use clipboard manager made using tkinter.Note:Currently, clix works only onLinuxsystems.InstallationTo install clix, simply,$ pip install clixIf you getImportErrorfor Xlib module, install it using this
command:$ sudo apt-get install python-xlibUsageTo run clix, open terminal and run this command:$ clixif error shown try:$ sudo clixNote:Leave this terminal open as long as you want to useclix.Another alternative is to use this command:$ nohup clix &Now, you can close the terminal butclixwill keep running.To close clix, open a terminal and simply run:$ pkill clixPressCtrl+spacekeys to open clix GUI. Initially, all clip
frames are empty.Now, as you copy any text, (usingCtrl+ckeys), the text is
saved to topmost frame of clix clipboard.Whenever you want to paste any clip, just open clix GUI (usinCtrl+spacekeys) and click onclip itbutton to copy
clip text to main clipboard.Now, simply pressingCtrl+vkeys will paste the desired clip
text!CLI usage to configure keys$ clix [-h] [-s SET_KEYBINDING] [-a] [-c]You can always use$ clix-hcommand to open this help message:optional arguments:
  -h, --help            show this help message and exit
  -s SET_KEYBINDING, --set-keybinding SET_KEYBINDING
                        Set alternate key binding. Default is LCTRL+SPACE
                        Format :- <KEY1>+<KEY2>. Ex:- RCTRL+RALT. To see
                        availble key bindings use 'clix -a' option
  -a, --available-keybindings
                        Show available key bindings
  -c, --show-current-keybindingTODO[X] Add support for user configurable keys.[ ] Add support for Windows and MacOS.[ ] Create a file system to log the clipboard.[ ] Improve UI.[ ] Add more functionalities.Want to contribute?Clone the repository$ git clone http://github.com/nikhilkumarsingh/clixInstall dependencies$ pip install -r requirements.txtRemove the.prefix from.pyxhookand.guifor the
following imports inclix.py, so it changes from:from.pyxhookimportHookManagerfrom.guiimportclipboardto:frompyxhookimportHookManagerfromguiimportclipboardTo test local version of clix:$ pip install -U .Finally, do report bugs and help us makeclixmore and more
productive!
Package: cli-xkcd
xkcdA command-line tool to accessxkcd comicsfrom a terminal.RequirementsPython 3pipInstallationInstall the package fromPyPI, available ascli-xkcd, usingpip.pipinstallcli-xkcdUsageAfter installing, run:xkcdin a terminal, or, to get a comic of a specific day:xkcd--comicNwhereNis a valid day/comic number.
Package: cli-yams
Yet Another Media ScraperThis project aims to provide a seamless access to news and media information.
A simple Python scraper to collect posts from the most popular Peruvian news websites (for now):El Correo:https://diariocorreo.pe/.El Comercio:https://elcomercio.pe/.Perú 21:https://peru21.pe/.Gestión:https://gestion.pe/.La República:https://larepublica.pe/.CNN News:https://edition.cnn.com/.BBC News:https://www.bbc.com/.InstallationStandard installation viapip:$pipinstallcli-yamsOr, you can install it manually:$gitclonehttps://github.com/rodp63/yams.git
$cdyams
$pipinstall.QuickstartLet's start by getting all the posts fromEl Comerciocontaining the keyword"peru"in the last month (by default).$yamsstartnewspaperelcomercio-kperuWe can define the date range to extract the information by using the-sand-toptions.
Let's get all the post fromPerú 21containing the keyword"congreso"from the last half of the year 2023.$yamsstartnewspaperperu21-kcongreso-s'2023-07-01'-t'2023-12-31'As you may notice, the output is printed on the screen by default.
Generally we want to save the information in a file, we can store the output in a JSON file by using the-ooption.
Let's get all the post fromEl Correocontaining the keyword"futbol"from the last month and save the output in the filefutbol_posts.json.$yamsstartnewspaperdiariocorreo-kfutbol-ofutbol_postsWe have been using a single keyword, however, we can use as many as we want.
Let's get all the post fromEl Comerciocontaining the words"messi"or"ronaldo"from the last month.$yamsstartnewspaperelcomercio-kmessi-kronaldoAlthough we can use keywords with more than one word (e.g.-k "chipi chapa"), it is not recommended since the keywords are stemmed and splited into clean words.
But sometimes we want to search for exact terms, considering accents or Letter case.
In such situations we can use the--exact-matchoption.
Let's get all the post fromPerú 21containing the exact keyword"Luis Advíncula"from the last month.$yamsstartnewspaperperu21-k"Luis Advíncula"--exact-matchThe task parameters are always displayed at the beginning of the process,
This way we are always aware of the details of the search that is about to start.
We can also define parameters by using environment variables, very useful when we want to execute YAMS within containers for example.
We can check them using theinfocommand.$yamsinfo
...Environment:YAMS_NEWSPAPER:YAMS_NEWSPAPER_SINCE:YAMS_NEWSPAPER_TO:YAMS_NEWSPAPER_KEYWORDS:YAMS_NEWSPAPER_OUTPUT:Let's get all the post fromEl Correocontaining the keyword"ambiente"from the last month using environment variables.$exportYAMS_NEWSPAPER="diariocorreo"$exportYAMS_NEWSPAPER_KEYWORDS="ambiente"$yamsstartnewspaperPlease refer to theDockerfileandmanifest.yamlfiles to run YAMS within Docker and Kubernetes.
Package: clize
Clize is an argument parser forPython.  You can
use Clize as an alternative toargparseif you want an even easier way to
create command-line interfaces.With Clize, you can:Create command-line interfaces by creating functions and passing them toclize.run.Enjoy a CLI automatically created from your functions’ parameters.Bring your users familiar--helpmessages generated from your docstrings.Reuse functionality across multiple commands using decorators.Extend Clize with new parameter behavior.Here’s an example:fromclizeimportrundefhello_world(name=None,*,no_capitalize=False):"""Greets the world or the given name.

    :param name: If specified, only greet this person.
    :param no_capitalize: Don't capitalize the given name.
    """ifname:ifnotno_capitalize:name=name.title()return'Hello{0}!'.format(name)return'Hello world!'if__name__=='__main__':run(hello_world)The python code above can now be used on the command-line as follows:$pipinstallclize$python3hello.py--helpUsage: hello.py [OPTIONS] name

    Greets the world or the given name.

    Positional arguments:
      name   If specified, only greet this person.

    Options:
      --no-capitalize   Don't capitalize the given name.

    Other actions:
      -h, --help   Show the help$python3hello.pyHello world!$python3hello.pyjohnHello John!$python3hello.pydave--no-capitalizeHello dave!You can find the documentation and tutorials athttp://clize.readthedocs.io/
Package: clizy
Command-line interface creation for lazy people using type hints.QuickstartThis code snippet:# ls.pydefls(filename,*,long=False,all=False,human_readable=False,limit:int=None):"""Fake command for listing.:param filename: filename, what else did you expect?:param long: long listing or something:param all: all, like including hidden files dude:param human_readable: show human readable stats:param limit: limit the number of files printed"""...generates this command line interface:$pythonls.py--helpusage: ls [-h] [-l] [-a] [-H] [-L LIMIT] filenameFake command for listing.positional arguments:filename              filename, what else did you expect?optional arguments:-h, --help            show this help message and exit-l, --long            long listing or something-a, --all             all, like including hidden files dude-H, --human-readable  show human readable stats-L LIMIT, --limit LIMITlimit the number of files printedClizy simplifies command line interface creation by using things we all use, know and love -
arguments names, default values, docstrings and type hints - without unnecessary complexities
and overwhelming documentation.Interested? Seedocsandcomparisonwith other libraries.
Package: clkhash
CLK Hashclkhashis a Python implementation of cryptographic linkage key hashing as described byRainer Schnell, Tobias Bachteler, and Jörg ReiherinA Novel Error-Tolerant Anonymous Linking Code.InstallationInstall clkhash with all dependencies using pip:pip install clkhashDocumentationhttps://clkhash.readthedocs.ioPython APITo hash a CSV file of entities using the default schema:fromclkhashimportclk,randomnamesfake_pii_schema=randomnames.NameList.SCHEMAclks=clk.generate_clk_from_csv(open('fake-pii-out.csv','r'),'secret',fake_pii_schema)Command Line InterfaceSeeAnonlink Clientfor a command line interface to clkhash.CitingClkhash, and the wider Anonlink project is designed, developed and supported byCSIRO's Data61. If you use any part of this library in your research, please
cite it using the following BibTex entry::@misc{Anonlink,
  author = {CSIRO's Data61},
  title = {Anonlink Private Record Linkage System},
  year = {2017},
  publisher = {GitHub},
  journal = {GitHub Repository},
  howpublished = {\url{https://github.com/data61/clkhash}},
}
Package: clld
clldTheclldtoolkit - a web framework for the publication ofCross-Linguistic Linked Data.Documentation for the code base and its use is available athttps://clld.readthedocs.io/en/latest/.
The source for this documentation is in thedocsdirectory.UsageOnce the initial steps (installation, bootstrapping a new project)
have been done helped bythe online documentation,
the biggest resource to guide further development of aclldapp
is thewealth of existing apps.
(Note: GitHub's "Used by" links - created from the dependency graph data - are really
helpful here!)
The following pointers are meant as a
starting point to solve specific problems by perusing the code of other
apps.Integrating language metadata from Glottolog: There'sa pluginfor that
and here's the list of apps on GitHub using it:https://github.com/clld/clld-glottologfamily-plugin/network/dependentsDisplaying (data on) phylogenetic laguage trees: There'sa pluginfor that
and here's the list of apps on GitHub using it:https://github.com/clld/clld-phylogeny-plugin/network/dependentsDisplaying cognacy relations between words: There'sa pluginfor that
and here's the list of apps on GitHub using it:https://github.com/clld/clld-cognacy-plugin/network/dependentsDisplaying phoneme inventories as IPA charts: There'sa pluginfor that
and here's the list of apps on GitHub using it:https://github.com/clld/clld-ipachart-plugin/network/dependentsIntegrating audio recordings of lexical data: There'sa pluginfor that
and here's the list of apps on GitHub using it:https://github.com/clld/clld-audio-plugin/network/dependentsAggregating data from multiple CLDF datasets: The app serving theIntercontinental Dictionary Seriesdoes this.
Very simple per-dataset metadata of the form{"id":"ids-cosgrovevoro","repo":"https://github.com/intercontinental-dictionary-series/cosgrovevoro","doi":"10.5281/zenodo.4280576","order":2}is read and used to populate the database, seehttps://github.com/clld/ids/blob/master/ids/scripts/initializedb.py#L38-L67Aggregating data from different CLDF modules: While mostclldapps are
concerned with just one type of data (e.g. typological questionnaires as in WALS,
or wordlists as in IDS), some have a different focus (e.g.TuLaR (Tupían Language Resources)). The TuLaR
app aggregates data which is curated in several datasets, bundled under
aZenodo community, seehttps://github.com/tupian-language-resources/tular/blob/main/tular/scripts/initializedb.pyUsing Charis SIL fonts: usingSIL's Charis fontson aclldpage is simple. Here's an examplehttps://ids.clld.org/valuesets/1-100-316Include the relevant style sheet (which will pull in the font resources):https://github.com/clld/ids/blob/b2884e06a53a0a3c7a0dc27955c314869d0a31aa/ids/templates/ids.mako#L10-L12Then assign the appropriate css class:https://github.com/clld/ids/blob/b2884e06a53a0a3c7a0dc27955c314869d0a31aa/ids/templates/unit/detail_html.mako#L6SeeTheCLLD projectOnline documentationPresentation on clld from 2014
Package: clldappconfig
clldappconfigScripted deployment and management ofclld web apps.
This package provides theappconfigcommand line utility as well asfabric taskswhich can be used in fabfiles for managing individual apps.command line utility usageTo show a help message runappconfig --helpTheappconfigcommand needs a configuration directory containing the global
configuration file (apps.ini) and the config scripts all managed apps.
I.e. the config directory (hereapps/) should have the following structure:apps
├── apps.ini
├── README.md
├── abvd
│   ├── fabfile.py
│   ├── README.md
│   └── requirements.txt
├── acc
│   ├── fabfile.py
│   ├── README.md
│   └── requirements.txt
.
.
.The config discovery is done in the following order:use argument of--config/-cuse theAPPCONFIG_DIRenvironment variableby default the current working directory (./) is assumed to be the config
directorySo both of the following commands do the same thing:appconfig --config ./path/to/appconfig/apps/ ls
env APPCONFIG_DIR=./path/to/appconfig/apps/ appconfig lsusing fabfilesFor every app should provide a subdirectory of the config directory, which
contains afabfile.pywith the following minimal structure:fromclldappconfig.tasksimport*init()Inside the directory containing the fabfile you can runfab -lto list all
available tasks for deployment, managing databases etc.Config discovery for the fabfiles works as follows:use theAPPCONFIG_DIRenvironment variableby default the parent of the current working directory (../) is assumed to
be the config directoryIf you use the config directory structure as described above, you can rely on
the default behavior and usually don't need to set theAPPCONFIG_DIRenvironment variable.TODO:describe structure and options ofapps.inidescribe some common workflows like deploying an app
Package: clld-glottologfamily-plugin
clld-glottologfamily-pluginclldplugin, adding language families fromGlottologto aclldapp to allow for better navigation and
visualization.UsageTo equip aLanguagemodel with a family relation, the model should inherit fromclld_glottologfamily_plugin.models.HasFamilyMixin. This relation can be populated upon
database initialization callingclld_glottologfamily_plugin.util.load_families.The families assigned in this way have an associated icon which can be used as map marker.
To make this easier, a customIMapMarkermay inherit fromclld_glottologfamily_plugin.util.LanguageByFamilyMapMarker.AssociatedDataTablecolumns suitable for tables listingLanguageobjects can be
used as follows:fromclld.web.datatables.languageimportLanguagesfromclld_glottologfamily_plugin.datatablesimportFamilyCol,MacroareaColfromclld_glottologfamily_plugin.modelsimportFamilyfrommodelsimportCustomLanguageclassLanguagesWithFamily(Languages):defbase_query(self,query):returnquery.outerjoin(Family)# note: isolates will have no related family!defcol_defs(self):res=Languages.col_defs(self)res.append(MacroareaCol(self,'macroarea',language_cls=CustomLanguage))res.append(FamilyCol(self,'family',language_cls=CustomLanguage))returnresAssigning familiesFamily information is retrieved from Glottolog, based on theidattribute of a
language. This will only work ifidis either a glottocode or an ISO 639-3 code.If no related family is found,Nonewill be assigned - rather than a dummyisolatesfamily or individual one-member families derived from the language.