Saravanan666/pypi-org huggingface dataset:
Package: choose-your-own-adventure
Choose Your Own Adventure !Choose Your Own Adventure (CYOA) stories using the Language Model LLM.DescriptionThis repository contains code that enables users to create and explore Choose Your Own Adventure (CYOA) stories using the Language Model LLM. With this code, users can craft their own interactive narratives, where the reader/player can make decisions that impact the progression and outcome of the story.The Language Model LLM provides a powerful tool for generating text that is consistent and coherent. By leveraging LLM, this code enables the creation of dynamic narratives that adapt to user choices, resulting in a personalized and engaging reading experience.The repository includes a user-friendly interface that allows authors to input their story structure, define decision points, and specify branching paths. The code then uses LLM to generate subsequent story sections based on user-selected options.The CYOA functionality provided by this code allows users to immerse themselves in stories that cater to their preferences, fostering creativity and imagination in both authors and readers. Whether you are an aspiring writer looking to craft interactive narratives or a reader seeking an innovative storytelling experience, this repository offers an exciting platform to explore the world of Choose Your Own Adventure stories using the power of LLM.Installationpipinstallchoose-your-own-adventurePlaycyoa
Package: chop
chop中文分词完整文档见GitHub:https://github.com/samurais/chop特点使用简单`python for x int.cut("工信处女干事每月经过下属科室都要亲口交代24口交换机等技术性器件的安装工作"):print(x) `代码通俗易懂，方便掌握算法MIT 授权协议安装说明代码对 Python 3 兼容全自动安装：easy_install chop或者pip install chop/pip3 install chop通过import chop来引用
Package: chopchopcolorc
Locate RGB colors faster than ever with this efficient color search module (C + multiprocessing)!pip install chopchopcolorcTested against Python 3.11 / Windows 10In Action - one CPU only:https://www.youtube.com/watch?v=bhLRYlK0ctsThismoduleprovidesfunctionsforparallelcolorsearchinacollectionofimages.ItutilizesmultiprocessingandacodewritteninCtoefficientlyprocessimagesconcurrently.Functions:1.**_color_search_c(pic,colors):**-Internalfunctionforcolorsearchinasingleimage.-Utilizesthe'locate_pixelcolor_c'moduletosearchforspecifiedcolors.-Returnsanarrayofcoordinateswherethecolorsarefound.2.**color_search_c(pics,rgb_tuples,cpus=5,chunks=1,print_stderr=True,print_stdout=False,usecache=True):**-Executesparallelcolorsearchonalistofimagesusingmultiprocessing.-Utilizes'_color_search_c'foreachimageinparallel.-Returnsadictionarywithimageindicesmappedtotheircorrespondingcolorsearchresults.ExampleUsage:fromchopchopcolorcimportcolor_search_cfromlist_all_files_recursivelyimportget_folder_file_complete_path# optionalfolder=r"C:\testfolderall"colors2find=((69,71,66),(255,255,255),(153,155,144),(55,57,52),(136,138,127),(56,58,53),(54,56,51),(0,180,252),)allpi=[x.pathforxinget_folder_file_complete_path(folder)ifx.ext==".png"]colorresults=color_search_c(pics=allpi,rgb_tuples=colors2find,cpus=6,chunks=1,print_stderr=True,print_stdout=False,usecache=True,)print(colorresults)
Package: chopin
chopinThis repository is intended to make it easier to use the Chopin's compositions.
It does not follow any coding conventions :)How to Install$pipinstallchopinRequires$pipinstallrequestsyoutube_dlbs4lxmlHow to UseExamplefromchopinimportChopinch=Chopin(force=True,output=True,semaphore=12)compo=ch.random_get()compo.links[0].download("./foo.mp3")
Package: choppedpress
IntroductionChoppedPresslets you split theWordPressXML export file into smaller files that can be used to import your posts, comments, tags and categories into a new WordPress installation.ExamplesAssuming you have already gone throught the process of exporting all of your posts, comments and tags into a file namedmy-blog-YEAR-MONTH-DATE.xml, you could then split it into several smaller XML files using the following command:choppedpress my-exported-wordpress.xmlThis will generatetwo(this is the default) XML files namedout01.xmlandout02.xml. The name of the generated files and/or how many files to generate can be specified by using the appropriate flags as show bychoppedpress –help.Usage:  choppedpress <INFILE> [[<OUTFILE>] [<TAG>] [<NUMBER>]]ChoppedPress lets you split the WordPress XML export file into smaller files
that can be used to import your posts, comments, tags and categories into a
new WordPress installation.Options:--versionshow program’s version number and exit-h,--helpshow this help message and exit-i<FILE>,--infile=<FILE>The XML file generated by WordPress-o<FILE>,--outfile=<FILE>The name for the smaller XML files. [default: out]-tTAG,--tag=TAGThe XML tag that represents your data. [default:
/rss/channel/item]-nNUMBER,--number=NUMBERHow many new files should be generated. [default: 2]InstallationChoppedPress is available at PyPI, so
installing it is as simple as executing:pip install choppedpressOr you can download the latest version and install it usingsetup.py:git clone git@github.com:omaciel/choppedpress.git
cd choppedpress
python setup.py build installAuthorThis software is developed byOg Maciel.
Package: chopper
Chopper is a tool to extract elements from HTML by preserving ancestors and CSS rules.Compatible with Python >= 3.8Installationpip install chopperFull documentationhttp://chopper.readthedocs.org/en/latest/Quick startfromchopper.extractorimportExtractorHTML="""
<html>
  <head>
    <title>Test</title>
  </head>
  <body>
    <div id="header"></div>
    <div id="main">
      <div class="iwantthis">
        HELLO WORLD
        <a href="/nope">Do not want</a>
      </div>
    </div>
    <div id="footer"></div>
  </body>
</html>
"""CSS="""
div { border: 1px solid black; }
div#main { color: blue; }
div.iwantthis { background-color: red; }
a { color: green; }
div#footer { border-top: 2px solid red; }
"""extractor=Extractor.keep('//div[@class="iwantthis"]').discard('//a')html,css=extractor.extract(HTML,CSS)The result is :>>>html"""
<html>
  <body>
    <div id="main">
      <div class="iwantthis">
        HELLO WORLD
      </div>
    </div>
  </body>
</html>""">>>css"""
div{border:1px solid black;}
div#main{color:blue;}
div.iwantthis{background-color:red;}
"""
Package: choppy
chop -> encrypt -> (?) -> decrypt -> mergeChoppy partitions files and encrypts using symmetric authenticated cryptography.
After decryption, embedded metadata provides for the original input file to be recreated and verified.selectable number of partitions and randomized file sizesecure cryptographic key/password input or via filesequential numeric or randomized file namesencrypted file chunks can have name and extension altered with no detriment to recreating input filechunks from multiple files can be located within the same directory and the merge command will locate and reassemble original input filesInstallationUsing pip:pip install choppyWithout pip - clone repository:python setup.py installCommand Line UsageSeeUsagefor advanced use and expanded options.generate cryptographic key file (key.txt)choppy gen -kcreate 10 partitions of infile.txt, randomize partition size by 50% and encrypt with key filechoppy chop infile.txt -n 10 -w 50 --use-key -i key.txtdecrypt partitions and merge to reassemble original filechoppy merge *.chp.* --use-key -i key.txtRequirementsPython 3.6 or greatercryptography 2.1.3Licensechoppy is released under the BSD 2-clause license. SeeLICENSEfor details.
Package: chop-pytorch
pytorCH OPtimize: a library for continuous and constrained optimization built on PyTorch...with applications to adversarially attacking and training neural networks.:warning: This library is in early development, API might change without notice. The examples will be kept up to date. :warning:Stochastic AlgorithmsWe define stochastic optimizers in thechop.stochasticmodule. These follow PyTorch Optimizer conventions, similar to thetorch.optimmodule.Full Gradient AlgorithmsWe also define full-gradient algorithms which operate on a batch of optimization problems in thechop.optimmodule. These are used for adversarial attacks, using thechop.Adversarywrapper.InstallingRun the following:git clone https://github.com/openopt/chop.git
cd chop
pip install .Welcome tochop!Examples:Seeexamplesdirectory and ourwebpage.TestsRun the tests withpytests tests.CitingIf this software is useful to your research, please consider citing it as@article{chop,
  author       = {Geoffrey Negiar, Fabian Pedregosa},
  title        = {CHOP: continuous optimization built on Pytorch},
  year         = 2020,
  url          = {http://github.com/openopt/chop}
}AffiliationsGeoffrey Négiar is in the Mahoney lab and the El Ghaoui lab at UC Berkeley.Fabian Pedregosa is at Google Research.
Package: chopro
# pychopro
[![PyPI version](https://badge.fury.io/py/chopro.svg)](https://badge.fury.io/py/chopro)
[![Build Status](https://travis-ci.org/jontsai/pychopro.svg?branch=master)](https://travis-ci.org/jontsai/pychopro)Utilities for manipulating, converting, and rendering ChoPro/ChordPro text.## Author[Jonathan Tsai (jontsai)](https://github.com/jontsai)## How It Works[ChoPro](https://en.wikipedia.org/wiki/ChordPro) aka [ChordPro](http://www.chordpro.org/) is a “[simple text format for the notation of lyrics and chords](http://www.chordpro.org/chordpro/ChordPro-File-Format-Specification.html).”This project contains a script [chopro2html](https://github.com/jontsai/pychopro/blob/master/chopro/chopro2html.py) that can convert Chordpro files like [this](https://raw.githubusercontent.com/jontsai/pychopro/master/demo/twinkle_twinkle_little_star.chopro) into HTML files that look like [this](http://jontsai.github.io/pychopro/demo/twinkle.html).## Inspiration<http://webchord.sourceforge.net/><https://pypi.python.org/pypi/pychord>## License[MIT](https://github.com/jontsai/pychopro/blob/master/LICENSE)
Package: chopro-epub
chordpro-epubSimple script to create a songbook from a list of chordpro files.InstallingDownload the latest wheel from the build artifacts, or install with pip$ pip install git+https://github.com/paulfd/chordpro-epub.gitPyPI availability might come later.Usage[user@foochopro-epub]$chopro-epub--help
Usage:chopro-epub[OPTIONS]SONG_LISTGenerateanEPUBsongbookfromalistofsongs.

Arguments:SONG_LISTThepathtothefilecontainingthelistofsongswithonesongperline.[required]Options:--outputPATHTheoutputpathforthegeneratedEPUBsongbook.[default:songbook.epub]--cssPATHThepathtoacustomCSSfiletostyletheEPUB.--book-titleTEXTThetitleofthegeneratedEPUBsongbook.[default:Songbook]--book-idTEXTAnidentifierfortheEPUBsongbook.[default:songbook31415926535]--book-authorTEXTTheauthororcreatoroftheEPUBsongbook.--wrap-chords/--no-wrap-chordsIfTrue,chordswithinthesonglyricswillbewrappedinsquarebrackets.[default:no-wrap-chords]--verbose/--no-verbose[default:no-verbose]--helpShowthismessageandexit.Example usage$chopro-epublist.txt--verbose
$chopro-epub--csscustom.css--book-author"Paul Ferrand"--book-title"My Songbook"list.txtCustom stylingYou can usethe default styleas a basis to customize the output style.ContributingThe project is fairly contained. I addedpre-commit hooksthat you
can use by runningpre-commit installin this repository. Any contribution is welcome.Note that I do not wish to host songs here.AcknowledgementsThanks a lot toRobert Hoellerfor the much improved parsing code!
Package: chopsticksc
In the game chopsticks both the user and the human start out with 1 finger on each hand.The goal of the game is to reduce the other players hand to a 0 in modulus 5, although the game can be played in different moduli.Valid moves include redistributing your own hands so that you preserve the total number of fingers. This is called a switch.ex: 1 1 1 1 -> 2 0 1 1ex: 3 1 1 1 -> 2 2 1 1Another valid move is called a hit. With a hit you add the value of one of your hands to the value of the opponents hands (modulus 5).ex: 1 3 1 3 -> 1 3 2 3ex: 3 3 3 3 -> 3 3 1 3The computer has a lookup table already coded in that was formed by playingagainst initially random opponents and evolving with a genetic algorithm.Good Luck!Home-page:https://github.com/AWestover/chopsticksAuthor: Alek Westover
Author-email:alek.westover@gmail.comLicense: UNKNOWN
Description: This module allows a human to play chopsticks against either another human or a computer.In the game chopsticks both the user and the human start out with 1 finger on each hand.The goal of the game is to reduce the other players hand to a 0 in modulus 5, although the game can be played in different moduli.Valid moves include redistributing your own hands so that you preserve the total number of fingers. This is called a switch.ex: 1 1 1 1 -> 2 0 1 1ex: 3 1 1 1 -> 2 2 1 1Another valid move is called a hit. With a hit you add the value of one of your hands to the value of the opponents hands (modulus 5).ex: 1 3 1 3 -> 1 3 2 3ex: 3 3 3 3 -> 3 3 1 3The computer has a lookup table already coded in that was formed by playingagainst initially random opponents and evolving with a genetic algorithm.Good Luck!Keywords: chopsticks game AI
Platform: UNKNOWN
Package: chopt
CHOOSE OPTIONSA simple CLI checkbox menu interface for choosing options.Takes a list of options as an argument and returns a list of selected items from
that list.Options are chosen by entering their corresponding number or name. Multiple
options can be selected in one go. Choices should be separated by spaces.Also supported is specifying ranges of numbers, in the formx..yorx-y(wherexandyare item numbers from the list, eg) 1..5 or 1-5).Additionally you can use..xor-xto specify everything up to the numberx, andx..orx-to specify everything from the numberxuntil the last
element.Finally one can use wildcard globbing to match option name strings. For instance
*.pywould match all files with the extension.py.Reserved words aretoggle,reset,acceptandquit(case insensitive). They can
be used to carry out those respective actions. Typing just the first letter also
carries out that action - ie)t, toggles all,r, resets, etc.INSTALLATIONpip install choptCLI USAGEusage: chopt [-h] options [options ...]

Create a checkbox menu from a list of options.

positional arguments:
  options     Options for the menu.

optional arguments:
  -h, --help  show this help message and exitPYTHON USAGEfromchoptimportchoptmy_list=['item1','item2','item3']chosen=chopt(my_list)some_interesting_function(chosen)EXAMPLESchopt $(ls ~/src/chopt)chopt $(shuf -n 100 /usr/share/dict/words)chopt options{1..100}
Package: choquet-classifier-glenscalai
Choquet-classifierImplementation of the Choquet classifier. This model was presented in "Learning monotone nonlinear models using the Choquet integral"[1]🚧Under Construction🚧InstallationDependenciesPython (>=3.9)NumPy (>=1.23.3)SciPy (>=1.9.1)scikit-learn (>=1.1.1)User installationclone this repository orpip installation will be added soonUsageThe application is compatible toscikit-learnand can be used like every other classifier from the scikit-learn library. In order to use the Choquet classifier, import the classChoquetClassifierfrom the modulechoquet_classifierfrom the packageclassifier. Some examples are shown below:Default exampleUse the contructor and the functionfitto initialize the Choquet classifier for a given dataset.>>>fromclassifier.choquet_classifierimportChoquetClassifier>>>X=[[1,3,2],...[1,0,3]]>>>y=[1,0]>>>cc=ChoquetClassifier()>>>cc.fit(X,y)Use the functionpredictto classify samples.>>>Z=[[1,1,2],...[2,1,3]]>>>cc.predict(Z)array([0,0])Examples with hyper-parameters>>>fromclassifier.choquet_classifierimportChoquetClassifier>>>X=[[1,3,2],...[1,0,3]]>>>y=[1,0]>>>cc=ChoquetClassifier(additivity=3,regularization=1)>>>cc.fit(X,y)Again, the functionpredictcan be used to classify samples. Note the different output compared to the first example.>>>Z=[[1,1,2],...[2,1,3]]>>>sc.predict(Z)array([0,1])Example with different class labelsThe classes do not have to be labeled with 0 and 1; any integer numbers or strings may be used instead. The smaller label in terms of the relation or lexicographic ordering is given to the negative class, whereas the other label is assigned to the positive class.The first example contains the class labels 2 and 1. Label 2 is assigned to the positive class and label 1 is assigned to the negative class since 2>1.>>>fromclassifier.choquet_classifierimportChoquetClassifier>>>X=[[1,3,2],...[1,0,3]]>>>y=[2,1]>>>cc=ChoquetClassifier()>>>cc.fit(X,y)>>>Z=[[1,1,2],...[2,1,3]]>>>sc.predict(Z)array([1,1])The second example contains the class labels 'one' and 'two'. Label 'one' is assigned to the negative class and label 'two' is assigned to the positive class because 'one' comes lexicographically first.>>>fromclassifier.choquet_classifierimportChoquetClassifier>>>X=[[1,3,2],...[1,0,3]]>>>y=['two','one']>>>cc=ChoquetClassifier()>>>cc.fit(X,y)>>>Z=[[1,1,2],...[2,1,3]]>>>sc.predict(Z)array(['one','one'])LicenceMITReference[1] Ali Fallah Tehrani, Weiwei Cheng, Krzysztof Dembczynski and Eyke Hüllermeier. Learning monotone nonlinear models using the Choquet integral. 2012.
Package: choraoipsum
A sample project that exists as an aid to thePython Packaging User Guide’sTutorial on Packaging and Distributing
Projects.This projects does not aim to cover best practices for Python project
development as a whole. For example, it does not provide guidance or tool
recommendations for version control, documentation, or testing.This is the README file for the project.The file should use UTF-8 encoding and be written using ReStructured Text. It
will be used to generate the project webpage on PyPI and will be displayed as
the project homepage on common code-hosting services, and should be written for
that purpose.<<<<<<< Updated upstream
Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not
a good idea, although a simple “What’s New” section for the most recent version
may be appropriate.
=======
Ougit clone https://github.com/igr-santos/choraoipsum.gitcd choraoipsum && pip install -r requirements.txtGerar choratim:python -m choraoipsum –count 100>>>>>>> Stashed changes
Package: chord
Engaging visualisations, made easy.Key Features•Get Access•Installation•Usage•LicenseKey FeaturesPlotAPI Chord- Illustrate inter-relationships between data.PlotAPI Sankey- Illustrate the flow from one set of values to another.PlotAPI Terminus- Illustrate distributing something out amongst recipients.PlotAPI Bar Fight- A beautiful take on the classic Bar Chart Race.PlotAPI Pie Fight- A beautiful take on the classic Pie Chart Race.PlotAPI Heat Map- Beautiful and interactive heat maps.PlotAPI Line Fight- A beautiful take on the classic Line Chart Race.PlotAPI Pareto Front- Illustrate non-dominated (Pareto) fronts over time.Upcoming Visualisations- Access to new visualisations as they are introduced.Supports Most Programming Languages- Get started with any language able to make HTTP requests.First-Class Python Support- Get started with pip install plotapiJupyter Lab/Notebook + Google Colab Support- Super-charge your notebooks with inline visualisations.Beautiful Themes & Fonts- Select from pre-made beautiful themes, or add your own.Share or Embed Interactive HTML- Download and embed your interactive visualisations.Render to PDF, SVG, or PNG- Generate high-quality output ready for print.Record Animation to Video- Create social media-ready animated visualisations.Get AccessVisitthe websiteto get access to PlotAPI.InstallationGet up and running with Python with the following command.pipinstallplotapiUsageExample - Chord Prohttps://user-images.githubusercontent.com/15690380/126084021-b008b256-2a31-4106-84af-42777ea480d9.mp4Created with PlotAPIChord(matrix,names).show()The datamatrix=[[0,5,6,4,7,4],[5,0,5,4,6,5],[6,5,0,4,5,5],[4,4,4,0,5,5],[7,6,5,5,0,4],[4,5,5,5,4,0],]names=["Action","Adventure","Comedy","Drama","Fantasy","Thriller"]Example - Sankey Prohttps://user-images.githubusercontent.com/15690380/126084745-712fd744-b626-429d-85f3-30b11979fe30.mp4Created with PlotAPISankey(links).show()The datalinks=[{"source":"Salary","target":"Me","value":40000},{"source":"Freelance","target":"Me","value":10000},{"source":"Dividends","target":"Me","value":6000},{"source":"Me","target":"Rent","value":1100*12},{"source":"Me","target":"Food","value":300*12},{"source":"Me","target":"Magazine Subscription","value":2000},{"source":"Me","target":"Personal Tax","value":6000},{"source":"Me","target":"Investments","value":30000},{"source":"Investments","target":"Facebook","value":8000},{"source":"Investments","target":"Amazon","value":7000},{"source":"Investments","target":"Apple","value":6000},{"source":"Investments","target":"Netflix","value":5000},{"source":"Investments","target":"Google","value":4000},]LicenseMITPrefer not to code? Try PlotPanel.complotapi.com· 
GitHub@shahinrostami· 
Twitter@shahinrostami· 
APolyrainnovation
Package: chord-chart
chord-chartThis package provides chord chart validation and transposition functionality.It is written in Rust and has an accompanyinglibraryin JavaScript. Used invrslev/songbook— lyrics and chords webapp.Example>>>fromchord_chartimportValidationError,transpose_chart,validate_chart>>># that's a valid chart: | *chord-with-bass-note* *chord-without-accidental* | *chord* | *(end of the bar, then new bar ->)*>>># | *chord-with-accidental-and-symbols* |>>>validate_chart('| A/E E | E |\n| C#m|')'| A/E E | E |\n| C#m |'>>>validate_chart('A/E E\nC#m')# and that's not a valid one: chords without stripes between lines of barsTraceback(mostrecentcalllast):..._chord_chart.ValidationError:barlineshouldstartwithstripe:A/EE>>>transpose_chart('| A/E| E |\n| C#m|',current_key='E',new_key='Db')'| Gb/Db | Db |\n| Bbm |'InstallationJustpip install chord-charton Python 3.7 to 3.11.Developmentmake installto clean up and setup dev-env.make testto build and test the package.make check-typesto run pyright.Also make sure to install pre-commit hooks (pre-commit installfrom the repository root).
Package: chorddb
chorddbA guitar tablature parser##Usagechorddb parse <filename>           # Terminal mode
chorddb parse <filename> --curses  # Curses mode###Additional options-i/--instrument: choose instrument to parse tabs for. Should be one of
                 guitar, loog, ukelele
-t/--transpose: transpose the tablature the given number of steps
-c/--capo: simulates a capo on the instrument
Package: chordgenerator
AboutChord Generatoris a Django application for enumerating all possible chords
in a selected scale. In particular,Chord Generatorwill show what the chord
is for a givenchord typeandposition, if such a chord exists. A demonstration
is availablehere.Installation and DependenciesYou can getChord Generatorfrom PyPI through the command:pip install chordgeneratorOnce installed, just add “chordgenerator” to your INSTALLED_APPS list in settings.py,
and add the desired URL in one of the urls.py files.Apart fromDjango, the app depends onmusictheory. This package - also made by myself -
is the guts of the application, and can be used outside of Django. It contains classes
for musical temperaments, scales and chords.The HTML template file used to generate HTML has been redesigned to work with theMezzanineCMS. The redesign removed any explicit
references to particular stylesheets found with earlier versions. Feel free to
customise: the app is released under a 3 clause BSD license. If you wish to do any
changes to the app, pop over to theGitHub repository.
(There is also aGithub repository for musictheory.)Versions0.1 (May 1st 2011) - Initial release. Took code and made setup script.0.2 (May 11th 2011) - Remove bugs.0.3 (June 6th 2011) - Add license information. Add more scales.0.4 (June 2nd 2013) - Try to make a half-decent PyPI package.0.5 (January 30th 2014) - Updated to be compatible with Django 1.6 and Mezzanine 3.0.0.6 (February 15th 2014) - Added more styling to be compatible with Bootstrap. More history described.0.7 (August 27th 2014) - Added the ability for users to hear the chords.0.8 (March 1st 2017) - Updated to be compatible with Django 1.10.0.9 (December 5th 2020) - Updated for Python 3 compatibility.CopyrightTheChord Generatorapp is copyright (c) 2008-2020Peter Murphy<peterkmurphy@gmail.com>.