Saravanan666/pypi-org huggingface dataset:
Package: clipstick
Create your cli using Pydantic models.Define a pydantic model as you would normally do, pass it to clipstick and you get a cli including subcommands, nice docstrings and validations based on typing and pydantic validators.Installationpip install clipstickExampleCreate a pydantic model as you would normally do.frompydanticimportBaseModelfromclipstickimportparseclassMyName(BaseModel):"""What is my name.In case you forgot I will repeat it x times."""name:str"""Your name."""age:int=24"""Your age"""repeat_count:int=10"""How many times to repeat your name."""defmain(self):for_inrange(self.repeat_count):print(f"Hello:{self.name}, you are{self.age}years old")if__name__=="__main__":model=parse(MyName)model.main()That's it. The clipstick parser will convert this into a command line interface based on the properties assigned to the model, the provided typing and docstrings.Sopython examples/name.py -hgives you nicely formatted (and colored) output:And use your clipython examples/name.py superman --repeat-count 4:The provided annotations define the type to which your arguments need to be converted.
If you provide a value which cannot be converted you will be presented with a nice error:python examples/name.py superman --age too-oldThe inclusion of thedef main(self)method is not a requirement.clipstickgenerates a pydantic model based on provided cli arguments and gives it back to you for your further usage. Usingdef main()is one of the options to further process it.Why?There are many other tools out there that do kind of the same,
but they all don't do quite exactly what I want.The goal of clipstip is to use pydantic to model your cli by leveraging:The automatic casting of input variables.The powerful validation capabilities.Docstrings as cli documentation.No other mental model required than Typing and Pydantic.Clipstick is inspired bytyro, which is excellent and more versatile than this tool. But in my opionion its primary focus is not building a cli tool along the lines of Argparse or Click but more on composing complex objects from the command line. Making tyro behave like a "traditional" cli requires additionalAnnotationflags, which I don't want.Some other similar tools don't support pydantic v2, so I decided to create my own. Next to that I wanted to try and build my own parser instead of usingArgparsebecause... why not.For more information visit thedocumentation
Package: clipstream
ClipstreamClipstream is a tool for printing clipboard contents to the standard output as they change. It provides a convenient way to access the system clipboard from the command line.On a Linux system with X and the XFIXES extension,clipstreamreceives clipboard updates without creating processes constantly for polling.InstallationClipstream can be installed with pip:pip install clipstreamFor use as a command-line tool, it is recommended to usepipxto install Clipstream in its own isolated environment:pipx install clipstreamUsage as a Command-Line ToolClipstream can be run from the command line with the following command:clipstreamThis will print the current contents of the clipboard to the standard output as they change.There are several options available for customizing the output of Clipstream:-n, --newline        Print a newline after each clipboard item.
-1, --one            Print one clipboard item, then exit.
-i, --include-initial Include the initial clipboard item.
-s, --strip           Strip whitespace from clipboard items.
-r, --polling-rate    How often to poll the clipboard, in Hz (times per second).
-0, --null            Print a null byte after each clipboard item.
-u, --unique          Print only unique clipboard items.Usage as a LibraryClipstream can also be used as a library in Python projects. To use Clipstream as a library, simply import theclipboard_streamfunction from theclipstream.streammodule:fromclipstream.streamimportclipboard_streamTheclipboard_streamfunction returns an asynchronous generator that yields the contents of the clipboard as they change.ExamplesHere are some examples of how Clipstream can be useful as a tool:Downloading files from copied links:clipstream|xargs-I_wget_Writing copied text to a file:clipstream|tee-acopied_text_fileGet clipboard history + selector with a preview:clipstream--strip--unique-0|fzf--read0--preview'echo -n {}'--bind'enter:execute(echo {} | xclip -selection clipboard)'
Package: clipt
AboutClipt (command line interface plotting tool) uses clasp and matplotlib
to aid in plotting data files using matplotlib directly from the command
line using a extensive set of options.  See the clasp documentation for
imformation about using config files.https://clipt.readthedocs.io/Clipt was built using clasp:https://clasp.readthedocs.io/which in turn depends on click:https://palletsprojects.com/p/click/Installationpip install cliptUsagesee:cl_plot --helpAutocomplete_CL_PLOT_COMPLETE=source cl_plot > clipt_complete.shIn your .bash_profile:source path/to/bin/clipt_complete.shSource Codeclipt:https://bitbucket.org/stephenwasilewski/cliptLicenceCopyright (c) 2018 Stephen WasilewskiThis Source Code Form is subject to the terms of the Mozilla PublicLicense, v. 2.0. If a copy of the MPL was not distributed with thisfile, You can obtain one athttp://mozilla.org/MPL/2.0/.History1.0.0alpha python 3.7 version0.1.11polar fix for scatter plot plus variable defined marker size0.1.11initial box plot implementation (need to work on multi-series / color options)0.1.10expose additional options to CLI0.1.9fix polar axis readin options on scatterplot0.1.8proper labeling of max value when using -xticks/yticks0.1.7bug in cl_plot colors0.1.6improve graph formatting and bug fixes in scatter and histo0.1.3add release to version bump0.1.2first release on pypi0.1.1remove dependency link from setup.py0.1.0first stable release0.0.1Initial setup of the directory
Package: clip-the-gym
clip-the-gymis just a script that:takes a youtube url in your clipboardtries to download itextracts the audio in your ~/Music folderIt makes a nice ‘hotkey’ in whatever window manager you’re using.If you have notify-python installed, it will
pop up nice messages for you.http://www.galago-project.org/downloads.phpYou’ll need to havexselon your system:$ sudo yum -y install xselTo install clip-the-gym itself:$ pip installclip-the-gymBased off the code ofbitlyclip.
Package: cliPublish
# cliPublish[![Build Status](https://travis-ci.org/mheistermann/cliPublish.svg?branch=master)](https://travis-ci.org/mheistermann/cliPublish)## IntroductioncliPublish allows easily uploading a file to a fixed directory of yourwebserver using rsync. On success it prints the URL the file will be availableat.## UsageYou need to create a small config file in `~/.config/cliPublish/remotes.conf`.There is an example file in [cliPublish/remotes.conf.example](cliPublish/remotes.conf.example).## Example```$ cliPublish.py 20140903_0399.JPG20140903_0399.JPG310,428 100%  264.80MB/s    0:00:00 (xfr#1, to-chk=0/1)http://tmp.mheistermann.de/20140903_0399.JPG```Optionally you can also specify a filename for the remote side:```$ cliPublish.py 20140903_0399.JPG ijen_crater.jpg20140903_0399.JPG310,428 100%  264.80MB/s    0:00:00 (xfr#1, to-chk=0/1)http://tmp.mheistermann.de/ijen_crater.jpg```## LicensecliPublish was written by Martin Heistermann <github()mheistermann.de>and is available under the terms of the GPL v3.## Ideas* Automatic copy to clipboard* Support multiple servers in config, select using optional argument* Warn/stop/backup if remote filename already exists* Upload multiple files at once, creating a directory with an index.html## ContributingSend me a pull request on github or [email me a patch](mailto:github[]mheistermann.de).
Package: clip-util
DescriptionPackage for accessing the clipboard with Python.Installationpip install clip-utilFeaturesWindows OnlyAllows for text and HTML on Windows.Supported Clipboard FormatsTextHTMLRTFUsageClipboardWill open and close every time the values are set, or retrieved. It's better to use a context manager.fromclipboardimportClipboardclipboard=Clipboard()# Set Clipboardclipboard['text']='Hello World!'# ORclipboard.set_clipboard('text')='Hello World!'# Get Clipboardtext=clipboard['text']# ORtext=clipboard.get_clipboard('text')Context ManagerfromclipboardimportClipboardwithClipboard()asclipboard:# Set Clipboardclipboard['text']='Hello World!'# ORclipboard.set_clipboard('text')='Hello World!'# Get Clipboardtext=clipboard['text']# ORtext=clipboard.get_clipboard('text')See Clipboard FormatsClipboardFormats: Enum for clipboard formats.ClipboardFormats.CF_HTML: Represents HTML format.ClipboardFormats.CF_RTF: Represents RTF format.fromclipboardimportClipboardfromclipboardimportClipboardFormatsfromclipboardimportHTMLClipboard
Package: clip-values
clip_valuesClipping values in a human-readable wayClipping numerical values to make sure they are within a lower and upper bound is a very common task.For example, if you are dealing with RGB colours, you want each channel to be between 0 and 255,
if you are dealing with shop sales, you need them to be between 0 and 1,
or if you are writing a cool game, you want your character to stay inside the screen.Now, if you have to do all this clipping, which alternative to clipping do you prefer?Usingclip_values.clipclipoffers human-readable syntax to your clipping operations:fromclip_valuesimportclipcolour_channel=clip(colour_channel).between_(0).and_(255)discount=clip(discount).between_(0).and_(1)player_x_pos=clip(player_x_pos).between_(0).and_(SCREEN_WIDTH)Theclipalternative is the simplest and easiest to read!
Compare it with two other common alternatives:Using anif: ... elif: ...block is also easy to read, but takes up 4x more lines of code:ifcolour_channel<0:colour_channel=0elifcolour_channel>255:colour_channel=255ifdiscount<0:discount=0elifdiscount>1:discount=1ifplayer_x_pos<0:player_x_pos=0elifplayer_x_pos>SCREEN_WIDTH:player_x_pos=SCREEN_WIDTHChainingminwithmax(or the other way around) is shorter, but this is much harder to read
and you have to spend a couple of minutes figuring out the interaction between the two consecutive
calls tomin/max:colour_channel=min(255,max(0,colour_channel))discount=max(0,min(1,discount))player_x_pos=min(SCREEN_WIDTH,max(0,player_x_pos))
Package: clip-video-encode
clip-video-encodeEasily compute clip embeddings from video frames.InstallUsing pip:pip install clip-video-encodeOr build from source:python setup.py installUsageNAME
    clip-video-encode - Encode frames using CLIP image encoder

SYNOPSIS
    clip-video-encode SRC <flags>

DESCRIPTION
    Input:
      src:
        str: path to mp4 file
        str: youtube link
        str: path to txt file with multiple mp4's or youtube links
        list: list with multiple mp4's or youtube links
      dest:
        str: directory where to save embeddings to
        None: dest = src + .npy
      output_format:
        str: "files" or "webdataset"
      take_every_nth:
        int: only take every nth frame
      frame_workers:
        int: number of Processes to distribute video reading to.
      frame_memory_size:
        int: GB of memory for FrameReader.
      metadata_columns:
        str: a comma separated list of metadata column names to look for in src
      use_dst_name:
        bool: use the save name suggested by video2numpy
      distribute:
        str: distribution strategy, currently either slurm or none
      oc_model_name:
        str: open_clip model name, used for selecting CLIP architecture
      pretrained:
        str: open_clip pretrained weights name

POSITIONAL ARGUMENTS
    SRC

FLAGS
    --dest=DEST
        Default: ''
    --output_format=OUTPUT_FORMAT
        Default: 'files'
    --take_every_nth=TAKE_EVERY_NTH
        Default: 1
    --frame_workers=FRAME_WORKERS
        Default: 1
    --frame_memory_size=FRAME_MEMORY_SIZE
        Default: 4
    --metadata_columns=METADATA_COLUMNS
        Default: ''
    --use_dst_name=USE_DST_NAME
        Default: False
    --distribute=DISTRIBUTE
        Default: 'none'
    --oc_model_name=OC_MODEL_NAME
        Default: 'ViT-B-32'
    --pretrained=PRETRAINED
        Default: 'laion2b_s34b_b79k'APIThis module exposes a single functionclip_video_encodewhich takes the same arguments as the command line tool:importglobfromclip_video_encodeimportclip_video_encodeVIDS=glob.glob("some/path/my_videos/*.mp4")EMBEDDING_DIR="some/path/my_embeddings"take_every_5=5clip_video_encode(VIDS,EMBEDDING_DIR,take_every_5)Who is using clip-video-encode?CLIP-Kinetics700- The Kinetics700 dataset (700GB) can be compressed to ~8GB using clip-video-encode at 1 FPSCLIP-WebVid- The WebVid dataset (10M videos) encoded as CLIP ViT-B/32 embeddings at 1 FPS.ExamplesCheck out some cool clip-video-encode examples:Thing detector- Look for things in videos using clip-video-encode generated embeddings.Large dataset processing- If you want to process a large dataset (like WebVid) into CLIP embeddings see the example at the bottom of the linked README.md.Setup a virtualenv:python3 -m venv .env
source .env/bin/activate
pip install -e .to run tests:pip install -r requirements-test.txtthenmake lint
make testYou can usemake blackto reformat the codepython -m pytest -x -s -v tests -k "dummy"to run a specific test
Package: clipwdmgr
Command Line Password Manager is a tool to manage accounts/passwords in the command line.
All accounts/passwords are stored in an encrypted file, protected by user given passphrase.Encryption/decryption is done using Python cryptography library:https://cryptography.io/en/latest/.RequirementsCLI Password Manager requires Python 3.4.3 (or later). Python packagescryptographyandpyperclipare required. Command line password generator,pwgen(http://sourceforge.net/projects/pwgen/), is not required but recommended.Use environment variable CLIPWDMGR_FILE to specify path and file of your password file.
There is no default location for password file, so you need to specify it before executing
clipwdmgr. Reason for this is that password file could be in Dropbox or other directory
and shared across many computers.Development and testing has been done using Windows 7 & Cygwin (64bit) and latest OS X & Brew.InstallInstall latest version:pip install clipwdmgr.or do it in steps (to avoid known problems):Install pyperclip:pip install pyperclipInstall cryptography:pip install cryptographyInstall clipwdmgr:pip install clipwdmgrKnown problem: Mac OS XWhen using Mac OS X El Capitan: install may fail with error:fatal error: ‘openssl/aes.h’ file not found.
Fix this by first installing OpenSSL using Homebrew and executing command:env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" pip install cryptographyand then using:pip install clipwdmgrOr, specifying only binary for cryptographypip install clipwdmgr –only-binary cryptographyshould work too.See here:https://github.com/pyca/cryptography/issues/2350.Known problem: MS WindowsWhen using pip install in Windows and Cygwin, install may fail to with error:error: Setup script exited with error: Unable to find vcvarsall.bat.Workaround is to install prereq cryptography before clipwdmgr:pip install cryptography. Specifying only binary for cryptographypip install clipwdmgr –only-binary cryptographymay also work.UsageExecute clipwdmgr and a simple shell opens. Start by adding new account using ‘add’ command.Type ‘help’ to get list of available commands.
Commands include: add, view, search, edit, list, pwd, pwgen and others.Shell is very basic but serves it’s purpose. When you have added accounts you can view them using:view startofaccountnameView-command takes the start of account name and prints out all matching accounts and copies password
to clipboard.Search-command searches all accounts by name, url or comment:search partofnameList-command lists all accounts:listAboutSome words about the origins of CLI Password Manager:http://sami.salkosuo.net/cli-password-manager/and some other words about v0.4http://sami.salkosuo.net/cli-password-manager-v0-4/.
Package: clipy
Clipy - command line interfaces micro-frameworkClipy is simple easy to use micro-framework for creating command line
interfaces. You can find documentation athttp://packages.python.org/clipy.Bug reportsClipy uses launchpad for tracking bug reports, if you are want to report one,
please follow the url:https://bugs.launchpad.net/clipyDevelopmentAll source code for clipy is on launchpad, versioned with bzr DVCS:http://launchpad.net/clipyIf you want to branch, simply type in terminal:$ bzr branch lp:clipyChange history0.1Initial release with the following features:Defining single commands with Command class.Defining composite commands (commands that consists of subcommans, like svn)
with CompositeCommand class.0.2New features:Added abstract command loaded for composite commands.Command loader implementation, which loads commands via setuptools entry
point groups.0.3New features:Added Command.chanllenge method for asking user for variable.Added Command.ask method for asking user for confirmation.Support for defining commands with argument parsers based on argparse.0.4New features:Default help command for composite commands.Better usage handling within subcommands.Commands are stateless now – options, args and context passed in run method
directly.Composite command behaviour can be parametrized in cases there is no
subcommand or unknown one is provided (CompositeCommand.no_command,
CompositeCommand.unknown_command methods).
Package: clipy-dl
Command Line Interface using Python for YoutubeAsynchronous Python command-line YouTube video downloader.This project was created so I could learn Python’sasynciolibrary.RequirementsThe following Python versions are supported:Python 3.4The following third-party libraries are used:aiohttp(asynchronous HTTP communication)pyperclip(optional, uses Gtk to read the clipboard)UsageDownload:clipy http://www.youtube.com/watch?v=fm78gjYkYKc -dUser Interface:clipy --uiUser interface written withcursesfrom the standard library:start script with--uioptioncopy youtube url into clipboardfollow menu: I to inquire, D to downloadNotesOnly tested on Ubuntu Trusty and Mac Lion.Python for Windows does not contain the neededcurseslibrary so the user
interface will not work “out of the box”, perhapsUniCursescan help.
Package: clipy-hooks
CliPy HooksThis project is a library handling generic execution of command line interfaces using python, it is a cross-platform shim between pre-installed system executables and pre-commit.
The intended use-case is for creating newpre-commithooks without fussing over the boilerplate of handling the CLI.Credit to pocc's awesomepre-commit hooksas he wrote the underlying class as part of his C linters.Getting StartedInstallingThe easiest way to use the project is to install the latest pypi release via pip.pipinstallclipy-hooksLicenseThe source of this repo maintains the Apache 2.0 open-source license of the original code, for details on the current licensing seeLICENSEor click the badge above.
Package: cliqs
CLiQS Python moduleCLiQS Python module provides implementation of multilingual crisis social media summarization model.Please, if you use CLiQS for your research consider citing:Fedor Vitiugin, Carlos Castillo: Cross-Lingual Query-Based Summarization of Crisis-Related Social Media: An Abstractive Approach Using Transformers. In ACM Hypertext 2022. ACM Press.https://doi.org/10.1145/3511095.3531279InstallationInstall the module via pip:pip install cliqsDownload LASER and CLiQS models:python -m laserembeddings download-modelspython -m cliqs download-modelsBefore running the script, please check installation ofSpaCy modelsfor language that you plan to use.python -m spacy download fr_core_news_sm # for FrenchTest useDownloadtest data 'example.csv'file and put in the current directory.Example of use:import pandas as pdfrom cliqs import CliqSumsum = CliqSum()tweets = pd.read_csv('example.csv')summary = sum.summarize(tweets, 'Damage', 'fr')print(summary)cyclone seroja a touché terre en Australie, entre Kalbarri et northampton, l'oeil est encore bien dessiné mais devrait rapidement se déstructurer. cyclone seroja devrait prendre le dessus et atteindre le stade de cyclone 65kt ce WE avant de toucher terre sur côte ouest Australie dimanche soir.example.csv —- data file with three columns: id, text, en_text (translation of texts to English).Damage -- information category. Current version supports 6 categories: Casualties, Damage, Danger, Sensor, Service aand Weather.fr -- language of texts in file.ResourcesCode for training custom models —CLiQS-CM GitHub repositoryDataset for text classification —tweets datasetDataset for summary evaluation —summaries dataset
Package: clique
Manage collections with common numerical component.>>>importos>>>importclique>>>collections,remainder=clique.assemble(os.listdir('.'))>>>forcollectionincollections:...print(collection)file.%04d.jpg[1-5,8,10-15]file.%04d.dpx[1-15]DocumentationFull documentation can be found athttp://clique.readthedocs.orgIssue trackerFound a bug? Have an idea on how to make the tool better?Post it athttps://gitlab.com/4degrees/clique/issuesCopyright and licenseCopyright (c) 2013 Martin Pengelly-PhillipsLicensed under the Apache License, Version 2.0 (the “License”); you may not use
this work except in compliance with the License. You may obtain a copy of the
License in the LICENSE.txt file, or at:http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
Package: cliquematch
cliquematchFinding correspondence via maximum cliques in large graphsThecliquematchpackage aims to do two specific things:Findmaximum cliquesin large sparse undirected graphs, as quickly and efficiently as possible.
(cliquematchuses C++ internally to implement a really fast maximum clique algorithm).Nowcliquematchcan also find (node-)weighted maximum cliques using theNWGraphclass.Construct large sparse undirected graphs in-memory for the various applications of the maximum
clique/clique enumeration problem.Licensed under MIT License. View the documentation athttps://cliquematch.readthedocs.io/Note: this iscliquematch v3. If you're looking forv1, you can go to thev1branchordocumentation.Installation InstructionsInstalling from a wheelcliquematchusescibuildwheelto build wheels viaGithub Actions.PyPIwheels are available for Linux, Windows, and MacOS.pipinstallcliquematch>=3.0.0Installing from sourcecliquematchrequirespybind11(v2.2 or newer) for its setup:pip3installpybind11cliquematchrequiresEigen(v3.3.7 or newer) as part of its setup.You can clone the repo viagit clone --recursiveto getEigen.If you already have an existing version ofEigen, or have downloaded it separately,
set theEIGEN_DIRenvironment variable to the folder containingEigenbefore compilation.AC++11compatible compiler must be available for the installation:On Linux, gcc is called with--std=c++11(builds withgcc 4.8.2formanylinux1wheels).On Windows, Visual Studio 2015 Update 3 (MSVC 14.0 runtime) or later is needed.Note:Installing under Windows+MinGW has not been tested.
Package: cliquet-pusher
proof-of-concept: PlugCliquet notificationswithPusher.com.Installpip install cliquet-pusherSetupIn the Cliquet-based application settings:cliquet.includes = cliquet_pusher

cliquet.event_listeners = cliquet_pusher.listener
cliquet.event_listeners.pusher.resources = <list of resource names>
cliquet.event_listeners.pusher.channel = <channel-name or pattern>

pusher.app_id = <pusher-app-id>
pusher.key = <pusher-key>
pusher.secret = <pusher-secret>For example, inKinto, to be notified of
record updates per collection:kinto.event_listeners.pusher.resources = record
kinto.event_listeners.pusher.channel = {bucket_id}-{collection_id}-{resource_name}>Note:This channel format is the one used in the demoTODOAdd view for authenticated channelsChangelog0.2.0 (2015-11-20)Add HTML demo withKintoandLeafletWorks withCliquet2.110.1.0 (2015-11-05)Initial working proof-of-concept.