Saravanan666/pypi-org huggingface dataset:
Package: cleverfetch-pkg-dmarienburg
CleverFetchA simple script for automating your downloads of data from the Clever sftp site.Author: David MarienburgVersion: 1.0Last Update: 2020-12-03RequirementsParamiko -https://pypi.org/project/paramiko/UsageUsing the script is simple, just import theget_filesmethod, passing it a username and a password.>>>fromCleverFetchimportget_files>>>get_files(username="ThisisanSFTPUsername",password="ThisIsAnSFTPPassword")The program will then automatically download any files that you don't already have into the scripts Data folderCleverFetch will then return a list of the new files downloaded, as file paths, Data that can be used by any secondary scripts like a database loader.Since storing passwords in plain text is unsafe, it would be best practice to run this script from a commandline using python's getpass library.  This will prompt the user to enter their password when the script runs and the password they type will not be visible in the command line.>>>fromCleverFetchimportget_files>>>fromgetpassimportgetpass>>>get_files(username="ThisIsanSFTPUsername",password=getpass("Password: "))If you want the downloaded .csv files to be saved in a specific folder simply provide this files complete filepath to the save_path parameter.  If you do not provide a path the files will be saved in the CleverFetch library's on folder structure.>>>fromCleverFetchimportget_files>>>fromgetpassimportgetpass>>>get_files(username="ThisIsanSFTPUsername",password="ThisIsAnSFTPPassword",save_path=r"C:\\users\me\desktop")
Package: clevergui
clevergui1. OVERVIEWDeveloper utilities and templates built around PySimpleGUI2. INSTALLATIONpip install clevergui3. BASIC USE>>> import clevergui4. UNDER THE BONNET5. CONTRIBUTINGContact Peter Fisonpeter@southwestlondon.tvor feel free to raise Pull Requests / Issue in the normal Github way.6. CREDITS7. PAYING IT FORWARDIfcleverguihelps you save time and focus on more important things, please feel free to to show your appreciation by starring the repository on Github.I'd also be delighted if you wanted to:
Package: cleversession
cleversession1. OVERVIEWA CleverDict subclass to handle selenium webbrowser sessions2. INSTALLATIONpip install cleversession3. BASIC USE>>> import cleversession4. UNDER THE BONNET5. CONTRIBUTINGContact Peter Fisonpeter@southwestlondon.tvor feel free to raise Pull Requests / Issue in the normal Github way.6. CREDITS7. PAYING IT FORWARDIfcleversessionhelps you save time and focus on more important things, please feel free to to show your appreciation by starring the repository on Github.I'd also be delighted if you wanted to:
Package: clevertimapi
# clevertim-api-py[![Build Status](https://secure.travis-ci.org/ciprianmiclaus/clevertim-api-py.png)](http://travis-ci.org/ciprianmiclaus/clevertim-api-py)
[![Coverage Status](https://coveralls.io/repos/ciprianmiclaus/clevertim-api-py/badge.png)](https://coveralls.io/r/ciprianmiclaus/clevertim-api-py)[Clevertim CRM](https://www.clevertim.com) Python API[Clevertim API PY Documentation](https://ciprianmiclaus.github.io/clevertim-api-py/) on Github Pages
Package: cleverutils
cleverutils1. OVERVIEWSome handy Python utilities and code snippets (beginner to intermediate level) used so often by the author that he took the time to package them up and share on Github/PyPI.  Hopefully they might be of use to other Pythonistas somehwere, some time...2. INSTALLATIONpip install cleverutils3. BASIC USETo access the main Session/Login/Scraper classes:>>> from cleverutils import CleverSession, Login_to
>>> cs = CleverSession(echo=True)
>>> cs.start()To access individual functions inclevergui:>>> from cleverutils import start_gui, button_menu, text_input, get_folder, progress_barstart_gui,button_menu, andtext_inputare simply wrappers around frequently usedPySimpleGUIfunctions using a predefined "house style".4. UNDER THE BONNETUsesseleniumfor webbrowser automation and scraping,PySimpleGUIfor nice, simple input prompts(*) andkeyringfor getting/setting credentials.  Usescleverdictfor general data management and its handy auto-save/JSON features.chomedriver.exeis included in this repository but you can replace with the latestseleniumweb-driver for your preferred browser.  Please seeseleniumdocs/tutorials widely available elsewhere.5. CONTRIBUTINGHopefullycleverutilswill be of interest to people getting started withseleniumand web scraping generally or working with Github, Twitter etc. and not wanting to use their API.cleverutilsisn't super elegant or even PEP8 compliant, but does solve simple web scraping challenges quickly, understandably, and extensibly.Contact Peter Fisonpeter@southwestlondon.tvor feel free to raise Pull Requests / Issue in the normal Github way.6. PAYING IT FORWARDIfcleverutilshelps you save time and focus on more important things, please feel free to to show your appreciation by starring the repository on Github.I'd also be delighted if you wanted to:
Package: cleverweb
cleverweb1. OVERVIEWA collection of methods used by CleverSession for accessing common sites using selenium.2. INSTALLATIONpip install cleverweb3. BASIC USE>>> import cleverweb4. UNDER THE BONNET5. CONTRIBUTINGContact Peter Fisonpeter@southwestlondon.tvor feel free to raise Pull Requests / Issue in the normal Github way.6. CREDITS7. PAYING IT FORWARDIfcleverwebhelps you save time and focus on more important things, please feel free to to show your appreciation by starring the repository on Github.I'd also be delighted if you wanted to:
Package: cleverwrap
CleverWrap.pyA simple python wrapper class to interact with the officialCleverBot API.This package was created to run on python3InstallingYou can install cleverwrap.py from pypi using:pip install cleverwrapYou can also clone this repository and import the library directly.Usage>>> from cleverwrap import CleverWrap
>>> cw = CleverWrap("API_KEY")
>>> cw.say("Hello CleverBot.")
"Hello Human."
>>> cw.reset() # resets the conversation ID and conversation state.
>>> conv = cw.new_conversation()  # Start a new conversation with CleverBot
>>> conv.say("Hellon there.")
"Hello Human."
>>> conv.reset()  # Reset the conversation stateLicenseCopyright 2017 Andrew Edwards using theMIT License.
Package: clewareADC
ContentsDescriptionLicenseInstallUsageDescriptionAn unofficial Python interface for theCleware USB-ADC 2utilizingcython-hidapi.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.LicenseclewareADC is provided under the MIT license (see LICENSE).InstallDownload clewareADC:git clone https://gitlab.com/darkforce/clewareADC.git
cd clewareADCInstall using setuptools:python setup.py installUsageThe folowing code will list all connected USB-ADC 2 devices, connect to the first device it finds
and print ten values from both channels, scaled by 13.621V:importtimefromclewareADCimportClewareADCdeviceList=ClewareADC.listDevices()iflen(deviceList)<1:raiseException('No ADCs found')fordeviceindeviceList:print('Found ADC at{}with serial number{}'.format(device[0],device[1]))print('')withClewareADC(13.621,deviceList[0][1])asadc:print('Reading from ADC{}with 13.621V scaling:'.format(deviceList[0][1]))foriinrange(10):ch0=adc.readChannel(0)ch1=adc.readChannel(1)print('  Ch 0:{}V, Ch 1:{}V'.format(ch0,ch1))time.sleep(1.00)
Package: cleware-traffic-light
cleware-traffic-lightcleware-traffic-lightan easy to use CLI tool written in Python3 to control the cleware USBtraffic light.
It supports multiple traffic light control and the usage as a module in your own Python application.UsageModulefromtraffic_lightimportClewareTrafficLight,Color,StateClewareTrafficLight().red_on()ClewareTrafficLight().yellow_off()# with address for specific lightClewareTrafficLight(21).green_on()CLIctl--redon
ctl-ron
ctl--redon--greenoff
ctl--redoff--greenon--address19Installationusepipto installcleware-traffic-lightsudopip3installcleware-traffic-lightLinuxTo use the CLI as a user you first have to create the USB rule# go to directorycd/etc/udev/rules.d/# create file with the rulevi99-clewareampel.rulesContentSUBSYSTEM=="usb",ATTR{idVendor}=="0d50",ATTR{idProduct}=="0008",MODE="666"Helpusage:ctl[-h][-r{on,off}][-y{on,off}][-g{on,off}][-aADDRESS]Turnstheledoftheclewaretrafficlightonoroff

optionalarguments:-h,--helpshowthishelpmessageandexit-r{on,off},--red{on,off}Controllstheredled-y{on,off},--yellow{on,off}Controllstheyellowled-g{on,off},--green{on,off}Controllsthegreenled-aADDRESS,--addressADDRESSSpecifieswhichtrafficlightshouldbeused
Package: clewsy
Welcome to CLEWsy - the Climate, Land, Energy and Water systems modelling framework tools repository.  The command line scripts in this repository provide tools for building CLEWs models using OSeMOSYS.Descriptionclewsyis a Python package which provides a command-line interface for building CLEWs models using OSeMOSYS.Dependenciesclewsyrequires a number of dependencies, but these should be installed automatically when installingclewsy.InstallationInstallclewsyusing pip:pip install clewsyTo upgradeclewsyusing pip:pip install clewsy --upgradeUsageFor instructions of the use of the tool, run the command linehelp function:clewsy --helpContributingNew ideas and bugsshould be submitted:to the repository Issue Tracker.ReferncingWhen usingclewsyfor publications and reports, please cite:T. Niet and A. Shivakumar (2020):  clewsy:  Script for building CLEWs models.NoteThis project has been set up using PyScaffold 3.2.3. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: clf
Commandlinefu.comis the place to record awesome command-line snippets. This tool allows you to search and view the results into your terminal.Example 1$clfpythonserver# python smtp serverpython-msmtpd-n-cDebuggingServerlocalhost:1025# Python version 3: Serve current directory tree at http://$HOSTNAME:8000/python-mhttp.server# Start a HTTP server which serves Python docspydoc-p8888&gnome-openhttp://localhost:8888# put current directory in LAN quicklypython-mSimpleHTTPServer# An alternative to: python -m SimpleHTTPServer for Arch Linuxpython3-mhttp.serverExample 2$clfrecursivelinecount# Recursive Line Countfind./-not-typed|xargswc-l|cut-c1-8|awk'{total += $1} END {print total}'# Recursive Line Countfind*-typef-not-name".*"|xargswc-l# Get Total Line Count Of All Files In Subdirectory (Recursive)find.-typef-name"*.*"-execcat{}>totalLines2>/dev/null\;&&wc-ltotalLines&&rmtotalLines# Recursive Line Countwc-l`find.-name*.php`InstallationThe tool works with Python 2 and Python 3. It can be installed withPip:pip install clfUsageCommand line tool to search snippets on Commandlinefu.com

Usage:
  clf --browse [options]
  clf <command> [options]
  clf <keyword> <keyword>... [options]

Options:
  -h, --help     Show this help.
  -v, --version  Show version.
  -c, --color    Enable colorized output.
  -b, --browse   Browse the Commandlinefu.com archive.
  --order=ORDER  The order output (votes|date) [default: votes].
  --proxy=PROXY  The proxy used to perform requests.

Examples:
  clf tar
  clf python server
  clf tar --proxy=http://127.0.0.1:8080
  clf --browse --order=dateNotesYou can set the CLF_COLOR environment variable to enable the colorized output by default.You can import theclfmodule and use it in your own scripts :>>> from clf import Clf
>>> c = Clf()
>>> for cmd in c.browse():
>>>     print(cmd.summary)
>>>     print(cmd.command)
Package: clfparser
Apache Common/Combined Log ParserParses a single Apache web log format record. The parser wil first attempt to match a combined format record, if this fails it will attempt to match a common format record. In the event that the record matches neither pattern, a null record will be returned.To return a dictionary representing the entire record or a list of specified objects call CLFParser.logDict(record), passing a single log record:>>> from clfparser import CLFParser
>>> logRecord='10.223.157.186 - - [15/Jul/2009:14:58:59 -0700] "GET /favicon.ico HTTP/1.1" 404 209'
>>> clfDict=CLFParser.logDict(logRecord)
>>> print clfDict
{'%b': '209', '%h': '10.223.157.186', '%time': datetime.datetime(2009, 7, 15, 14, 58, 59), '%l': '-', '%Referer': '',
'%s': '404', '%r': '"GET /favicon.ico HTTP/1.1"', '%u': '-', '%t': '[15/Jul/2009:14:58:59 -0700]', '%timezone': '-0700', '%Useragent': ''}To return a subset of the log record as a list, call CLFParser.logParts(record, formatMask). where formatMask is a quoted string listing the log items required in the output:>>> clfParts=CLFParser.logParts(test,'%h %time')
>>> print clfParts
['10.223.157.186', datetime.datetime(2009, 7, 15, 14, 58, 59)]To use with Apache Spark:>>> from clfparser import CLFParser
>>> accLog = sc.textFile("access_log", 2).cache()

>>> logDict = accLog.map(lambda logRec: CLFParser.logDict(logRec))
>>> logDict.first()
{'%b': u'202', '%h': u'10.223.157.186', '%l': u'-', '%timezone': u'-0700', '%s': u'403', '%r': u'"GET / HTTP/1.1"', '%Referer': '', '%t': u'[15/Jul/2009:14:58:59 -0700]',
'%time': datetime.datetime(2009, 7, 15, 14, 58, 59), '%u': u'-', '%Useragent': ''}

>>> logParts = accLog.map(lambda logRec: CLFParser.logParts(logRec, '%h %t'))
>>> logParts.first()
[u'10.223.157.186', u'[15/Jul/2009:14:58:59 -0700]']Common Log FormatDescribed by:'%h %l %u %t \"%r\" %>s %b'Where:%h- host%l- identity%u- userid%t- time%r- request%>s- status%b- sizeCombined Log FormatAs Common Log Format with the addition of 2 further fields:'%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-agent}i"'Where:%{Referer}i- HTTP request header referer%{User-agent}i- HTTP request header user agentAdditional FieldsIn addition to the standard log fields, clfparser also parses the log time field,%t, to create a Python datetime object%timeand a string object representing the timezone,timezone.InstallationInstall usingpip:pip install clfparserTo DoPerformance improvementsCommand line toolsIdentify request resource as an additional data item
Package: clfutils4r
Classification UtilitiesThis packages provides a simple convenience wrapper around some basic sklearn and scikit-plot utilities for classification. The only function available iseval_classification().Metrics plotted -Confusion MatrixClass-wise PR curveClass-wise ROC curveAdditional metrics plotted if binary classification -KS Statistic PlotLift CurveCumulative Gain PlotCross-validated PR curveCross-validated ROC curveInstallationpip install clfutils4rAvailable ParametersFor cross-validation on full datasetuntrained_model: classifier object (untrained); this is used for cross-validationX: Pandas DataFrame containing preprocessed, normalized, complete datasety: Pandas Series containing encoded labels forXFor single run evaluationy_test: ground-truth encoded labels of test sety_pred: binary predicted labels for test sety_pred_proba: probabilist predictions per class for test setFor Shapley analysismake_shap_plot: setTrueif you want to perform Shapley analysistrained_model: classifier object (trained)X_train: Pandas DataFrame containing preprocessed, normalized, complete train setX_test: Pandas DataFrame containing preprocessed, normalized, complete test setFor plottingclass_names: list of unique classesRESULTS_DIR: location to store results; directory will be created if it does not existsave: setTrueif you want to save all results in RESULTS_DIR; defaults toFalseshow: display all results; useful in notebooks; defaults toFalseExample Usageimportmatplotlib.pyplotaspltimportnumpyasnpimportpandasaspdimportosfromsklearnimportdatasetsfromsklearn.preprocessingimportStandardScalerscaler=StandardScaler()## Load dataset: Example - breast cancer predictiondata=datasets.load_breast_cancer()class_names=data.target_namesfeature_names=data.feature_namesX=pd.DataFrame(data.data,columns=feature_names)y=pd.Series(data.target)forfeat_nameinfeature_names:X[feat_name]=scaler.fit_transform(X[[feat_name]])## Split into train and test setsfromsklearn.model_selectionimporttrain_test_splitX_train,X_test,y_train,y_test=train_test_split(X,y,test_size=0.30,random_state=42)## Setup modelfromsklearn.treeimportDecisionTreeClassifiermodel=DecisionTreeClassifier()model_params={'criterion':'gini','max_depth':3,'min_samples_leaf':5}model.set_params(**model_params)## Train modelmodel.fit(X_train,y_train)## Evaluate modelfromclfutils4r.eval_classificationimporteval_classificationy_pred=model.predict(X_test)y_pred_proba=model.predict_proba(X_test)eval_classification(untrained_model=DecisionTreeClassifier().set_params(**model_params),n_splits=5,class_names=class_names,X=X,y=y,make_shap_plot=True,trained_model=model,X_train=X_train,X_test=X_test,y_test=y_test,y_pred=y_pred,y_pred_proba=y_pred_proba,titlestr="Breast Cancer Detection using Decision Tree Classifier",show=True,save=True,RESULTS_DIR=os.getcwd()+'/results')Developer Notes:This package is the updated version ofbcutils4rwhich supported only binary classification.bcutils4ris now defunct.
Package: clg
This module, which wrapargparse, aims to simplify the
creation and the maintainabilty of command-line by defining its configuration
in a predefined struture (ie. a dictionnary). As python dictionnaries are easily
exportable to configuration files likeYAMLorJSON, the idea is to
outsource the command-line definition to a file instead of writing dozens or
hundreds lines of code.Code is available onGithub.Documentation is available onReadthedocs.Changlog is availablehere
Package: cl-games
cl_gamesThis package can be used for building basic video games using the command line.UsageFor creating a game, extend the clase "Game" and use "Game.run"`import cl_gamesclass MainGame(cl_games.Game):"""docstring for MainGame."""

def __init__(self):

    super(MainGame, self).__init__()

    self.title = "My New Game"

def update(self):

    #This is run every framegame = MainGame()game.run()
`
To add a sprite, extend class sprite`class Player(cl_games.sprites.Sprite):def __init__(self, game):

    super(Player, self).__init__(game)

    self.image = [

        "  ^  ",

        " / \ ",

        "/___\\"

    ]

    self.posX, self.posY = 18, 17

    self.setLengthToImage()

def update(self):

    #Also run every framegame.addSprite(Player(game))`To stop the game, just set the running variable to false on gamegame.running = false
Package: clgpy
# clgpypackage
Clgpy is a fundamental package that can be used by a person who is new to programming in python.
It is mainly useful for college students.Clgpy constitutes of following functions:isPrime(number)
PrimeBtwInterval(lower, upper)
isPalindrome(num)
isArmstrong(num)
halfPyramidpattern(n)
leftHalfPyramidpattern(rows)
downwardHalfPyramidpattern(rows)
equilateralTrianglepattern(size)
rightStartTrianglepattern(rows)
downEquilateralTrianglepattern(rows)
filledDiamondpattern(rows)
menPantShapedpattern(rows)
Flagpattern(row)
PascalTrianglepattern(row)
ChristmasTreepattern(row)
Starpattern(n)
factorial(n)
interest(p,t,r) #principle, time period, rate
progression(a,d,n) #start, difference/rate, no of terms
matSummary(m1) # Pass matrix as numpy array
matsumprod(m1,m2) # Pass matrix as numpy array
Package: clgui
clguiCommand-Line-GUIDocsInstall clguipip install clguiCreate new guiimportclguivertical_layout=clgui.layout.VStack()# Currently the only layout is VStack, more are plannedmain=clgui.GUI(layout=vertical_layout)# Initialize a new GUI# Elementsbutton_list=clgui.ButtonList()# Currently the only element types are ButtonList and Button, more are plannedbutton=clgui.Button("click me")# Buttons do not need event handlers but can have them.defhandleClick(data):print(data)# Methodsbutton1=clgui.Button("Hello",handleClick,["data1","data2"])# Create a new button with an event handler when enter is pressed on itbutton2=clgui.Button("World")# Create a new button with an event handler when enter is pressed on itbutton_list.addButtons([button1,button2])# Add buttons to the button listbutton_list.addButton(button1)# A single button can also be addedvertical_layout.add(button_list)# Add button list to the layoutvertical_layout.add(button)# You can also directly add a button to the layoutmain.show()# Show the main GUImain.destroy()# Close the gui
Package: clhash
Merge hash function from crc32 and lookupc version by jingmi , python wrapper by zsp:from clhash import get_unsigned_hash,get_hashprint get_unsigned_hash(“stdyun.comzsp007@gmail.com”)print get_hash(“stdyun.comzsp007@gmail.com”)Reference:http://burtleburtle.net/bob/hash/doobs.html
Package: clhs
Conditioned Latin Hypercube Sampling in Python.This code is based on the conditioned LHS method ofMinasny & McBratney (2006). It follows some of the code from the R packageclhsof Roudier et al.In short, this code attempts to create a Latin Hypercube sample by selecting
only from input data. It uses simulated annealing to force the sampling to
converge more rapidly, and also allows for setting a stopping criterion on
the objective function described in Minasny & McBratney (2006).
Package: cli2
cli2: Dynamic CLI for Python 3Expose Python functions or objects with a minimalist argument typing style, or
building your own command try during runtime.Documentation available on RTFD.Democli2 is a little library to build CLIs, which documentation isavailable on
RTFD, but it comes with its own demo
command that may as well be useful to explore Python libraries and call
functions on the fly.Because, initially, cli2 was supposed to just bring Python callables on the CLI
without even a single line of code:cli2 path.to.your.callable arg1 kwarg1=valueThis command was implemented again in this 10th rewrite of the CLI engine
extracted from Playlabs, however this implementation features something pretty
funny: cli2 is a Group subclass which overrides the default Group
implementation based on the first argument passed on the command line.Basically, when you callcli2 path.to.module, it will load a Group of namepath.to.modulewhich whill load one Command per callable inpath.to.module.When you callcli2 path.to.functionit will execute the function.As a result, these three commands are strictly equivalent:cli2 cli2.test_node.example_function foo=bar
cli2 cli2.test_node example_function foo=barThat is because cli2 generates a group with every member of the previous group!See for yourself with:cli2 help cli2.test_nodeOr just:cli2 cli2.test_nodeBecause cli2.test_node is not a callable but a module, cli2’s cli2 CLI created
a command Group on the fly with the module and added every callable member as
command.When you call a group on the command line, it displays help by default to drive
the user.
Package: cli3
cliA highly configurable, dynamic, fast, and easy solution to managing
a command-line application. The goal is to make cli development as simple
and effective as possible for any configuration enabling the developer to
focus on function over form.Supports Python >= 3.7 and can run asynchronously or synchronously.This library took heavy initial inspiration byurfave/cliso credit to them for their work as well.Install$pipinstallcli3DocumentationMore documentation is available in./docsor the hosted
documentation site athttps://cli3.readthedocs.org.LicenseSeeLICENSE
Package: cli42ndLock
Python lib and CLI for 2ndLockRequirementsSee requirements.txtLibraryFor python 3. SupportsKey generationKey importEncryptionDecryptionCLIUse command line to interact with 2ndLock with scripts or interactiveExampleUse 2ndLock Community Server athttps://community.2ndlock.orgfor testing.pipinstallcli42ndLock

cli42ndlockgenerate-keystest@example.commy_passwdmy_passphrase_for_keymy_private_key.pem

cli42ndlockencrypttest@example.commy_passwdtestfile.txttestfile.2ndlockrecipient@example.com

cli42ndlockdecryptrecipient@example.commy_passwdmy_passphrase_for_keytestfile.2ndlocktestfile.newmy_private_key.pemLicenseApache 2.0