Saravanan666/pypi-org huggingface dataset:
Package: py-climate-health-toolbox
Python Climate and Health ToolboxA set of tools to process data from weather stations and health databases to study the impact of extreme climate events in health.Project OverallThis project is studying the extreme climate events, such as heatwaves and their impact on health.The present toolbox is being developed by students and researchers of the Climate and Health Data Science research team of the University of Campinas.Libraries descriptionclimatexThe IPCC Special Report on Managing the Risks of Extreme Events and Disasters to Advance Climate Change Adaptation (SREX), defines a extreme weather or climate event as "the occurrence of a value of a weather or climate variable above (or below) a threshold value near the upper (or lower) ends of the range of observed values of the variable". For simplicity, both extreme weather events and extreme climate events are referred to collectively as "climate extremes".This library implements a set of functions that are capable of identifying extreme events such as heatwaves and coldwaves.The main inputs to this library would be datasets from weather stations and datasets that characterize climate normal time series.** Author: ** Daniela S. Oliveira,daniela.souza@outlook.com** Contributors: ** Felipe Pedroso, Lucas Ueda, Paula D. P. CostaYou will need to install those modules

    Pandas      (0.23.4)AcknowledgmentGrant 2017/20013-0 São Paulo Research Foundation (FAPESP)
Package: pyclimb
pyclimbA library to easily convert climbing route grades between different grading systems.In rock climbing, mountaineering, and other climbing disciplines, climbers give a grade to a climbing route or boulder problem, intended to describe concisely the difficulty and danger of climbing it. Different types of climbing (such as sport climbing, bouldering or ice climbing) each have their own grading systems, and many nationalities developed their own, distinctive grading systems.InstallThe recommended installation is viapip:pipinstallpyclimbUsageimportpyclimbpyclimb.convert(grade='6a+',grade_system='French',to='YDS')//'5.10b'pyclimb.convert(grade='9c',grade_system='French',to='YDS')//'5.15d'pyclimb.convert(grade='5.12a',grade_system='YDS',to='French')//'7a+'NoteThis is a package under active development. Currently, only the following conversions are being supported:[sport climbing] conversion between French grading system and the YDS (Yosemite Decimal System).Other conversions and different types of climbing will be included soon. These changes may drastically change the user-facing API, so do consult the semantic versioning of this package before upgrading to a newer version.How to contributeIf you wish to contribute,thisis a great place to start!LicenseDistributed under theMIT License.
Package: pyclim-engine
Pyclim EngineEasy to use library for creating CLI-based games in Python.This project is for fun/learn purposes.ExampleNote: Pyclim Engine is very experimental and there are millions of bugs floating there.
Help me fixing them by contributing.importthreadingimporttimeimportosimportpyclimscreen=pyclim.Screen()# A prefab of a controller that moves in 4  directionsplayer=pyclim.Player(parent=screen)thread=threading.Thread(target=player.move).start()# Main game loopwhileTrue:print(screen.update(player))# Printing the latest update of the screentime.sleep(0.25)os.system("cls")# Clears the command line. For linux use "clear"Read morehere...
Package: pyclimenu
pyclimenuThis python module creates simple command line menus. Just define the callable and the label of each option and voila!
Foreground, background color numbering and labels are adjustable.InstallpipinstallpyclimenuDemofrompyclimenu.menuimportMenudefa():print('''Let's Rock!''')return1mn=Menu(items=[{"label":"The easy way","callback":a},{"label":"to create","callback":a},{"label":"command line menus","callback":a}])mn.set_colors(num_fg="cyan",num_bld=True,label_fg="blue",label_bl=True)results=mn.run(header="pyclimenu")print(results)
Package: py-climenu
PyCLIMenuCLI Menu module for Python.UsageStandard usagefrompyclimenuimportmenumain_menu=menu.Menu("Main Menu")main_menu.add_items({"Option 1":callback_1,"Option 2":callback_2})main_menu.display()Alternatively...frompyclimenuimportmenumenu.BasicMenu("Main Menu",{"Option 1":callback_1,"Option 2":callback_2})Option menufrompyclimenuimportmenucolor_menu=menu.OptionMenu("Color")red=(255,0,0)green=(0,255,0)blue=(0,0,255)color_menu.add_items({"Red":red,"Green":green,"Blue":blue})color=color_menu.display()Alternatively...frompyclimenuimportmenucolor_menu=menu.BasicOptionMenu("Color",{"Red":(255,0,0),"Green":(0,255,0),"Blue":(0,0,255)})color=color_menu.selection
Package: pyclip
PyClipCross-platform clipboard utilities supporting both binary and text data.Some key features include:A cross-platform API (supports MacOS, Windows, Linux)Can handle arbitrary binary dataOn Windows, some additionalclipboard formatsare supportedInstallationRequires python 3.7+pipinstallpyclipUsagepyclip can be used in Python codeimportpyclippyclip.copy("hello clipboard")# copy data to the clipboardcb_data=pyclip.paste()# retrieve clipboard contentsprint(cb_data)# b'hello clipboard'cb_text=pyclip.paste(text=True)# paste as textprint(cb_text)# 'hello clipboard'pyclip.clear()# clears the clipboard contentsassertnotpyclip.paste()Or a CLI# paste clipboard contents to stdoutpython-mpyclippaste# load contents to the clipboard from stdinpython-mpyclipcopy<myfile.text# same as above, but pipe from another commandsome-program|python-mpyclipcopyInstalling via pip also provides the console scriptpyclip:pyclipcopy<my_file.txtThis library implements functionality for several platforms and clipboard utilities.MacOSWindowsLinux on x11 (withxclip)Linux on wayland (withwl-clipboard)If there is a platform or utility not currently listed, please request it by creating an issue.Platform specific notes/issuesWindowsOn Windows, thepywin32package is installed as a requirement.On Windows, additional clipboard formats are supported, including copying from a file
(like if you right-click copy from File Explorer)MacOSMacOS has support for multiple backends. By default, thepasteboardpackage is used.pbcopy/pbpastecan also be used as a backend, but does not support arbitrary binary data, which may lead to
data being lost on copy/paste. This backend may be removed in a future release.LinuxLinux on X11 requiresxclipto work. Install with your package manager, e.g.sudo apt install xclipLinux on Wayland requireswl-clipboardto work. Install with your package manager, e.g.sudo apt install wl-clipboardAcknowledgementsBig thanks toHoward Maofor donating the PyClip project name on PyPI to
this project.
Package: pyclip2org
FeaturesParse ‘My Clippings.txt’ generated fileExtract highlights, marks and notesExport to org-mode files separated by booksRequirementsYou will need a ‘My Clippings.txt’ file in English or SpanishInstallationYou can installMy Clipping to org-mode notesviapipfromPyPI:$pipinstallpyclip2orgUsageOnce you’ve installed, you can execute$pyclip2org-len-o~/org/kindle-c/media/Kindle/documents/My\Clippings.txtPlease see theCommand-line Referencefor details.ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMITlicense,My Clipping to org-mode notesis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was generated from@cjolowicz’sHypermodern Python Cookiecuttertemplate.
This project is based onManaging kindle highlights with Python and GitHub
Package: pyclipboard
PyClipboardThis is a simple example package. With the purpose of a easy-use advance clipboard package for mac.And itisvery easy to use.importpyclipboardclipboard=ClipBoard()Copy textclipboard.copy_text("Hello World")Copy imageclipboard.copy_image("image.png")Copy image from urlclipboard.copy_image("./Users/username/Desktop/image.png")Copy colorclipboard.copy_color(0x000000)Copy htmlclipboard.copy_html("<h1>Hello World</h1>")Copy urlclipboard.copy_url("https://example.com")Copy file/directoryclipboard.copy_file("./Users/")
Package: pyclip-copycat
# PyClip-copycat fork fromhttps://github.com/zhemao/pyclipPyClip wraps thexclipcommand-line program on Linux and thepbcopyandpbpasteprograms on Mac OS X and theclipandpasteon Windows to provide an easy python interface to the
system clipboard. To install the library, download the code and runsudo python setup.py install. You can then use the library like soimport clipboard# copy some text to the clipboard
clipboard.copy(‘blah blah blah’)# get the text currently held in the clipboard
text = clipboard.paste()# helpful wrapper that passes pasted text through the csv module
# useful for dealing with data copied from spreadsheets
data = clipboard.paste_table()Note: If you are using this on Linux, make sure you have the xclip
program installed.PyClip is release under an MIT license, reproduced in LICENSE.
Package: pyclist
=================Markus Binsteiner=================:Author: Markus Binsteiner.. contents::1 pyclist---------A small framework to quickly create cli scripts for REST (or other) APIs.1.1 Usage~~~~~~~~~1.1.1 Requirements for api class (at the moment -- might be changed)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- Constructor takes named arguments which are present in the resulting argparse namespace (it will be converted to a dict and passed to the constructor)- methods need to start with "call\_" in order to be automatically added as a sub-command- [some restritions as to file types maybe]1.1.2 Example code^^^^^^^^^^^^^^^^^^.. code-block:: python# create the pyclist objectpyclist_obj = pyclist('proj', 'A commandline client for CeR project management.')# add some basic options that are used for all sub-commands (optional)pyclist_obj.root_parser.add_argument('--url', '-u', help='API base url', default=self.config.api_url)pyclist_obj.root_parser.add_argument('--username', help='API username', default=self.config.api_username)pyclist_obj.root_parser.add_argument('--token', help='API token', default=self.config.api_token)# register the api classpyclist_obj.add_command([api_class])# execute the selected method (using an auto-created api object)result = pyclist_obj.executeHistory-------0.1.0 (2015-01-11)---------------------* First release on PyPI.
Package: pyCliTable
Introduction"pyCliTable" is a Python package designed to simplify the display of data in a tabular format within the command-line interface (CLI). This package offers an intuitive and user-friendly way to present structured data, making it easy for developers and users to visualize information neatly organized into rows and columns. With customizable styling options, "pyCliTable" streamlines the process of creating tables, enhancing the readability and presentation of data for CLI applications.Additionally, the intelligent algorithm within pyCliTable detects missing data within a specific row and seamlessly replaces it with*****, ensuring a continuous, polished presentation of your data. This feature seamlessly integrates into its functionality, allowing pyCliTable to maintain its magic throughout.Installation:pip install pyCliTableOr seehttps://pypi.org/project/pyCliTable/Example:from pyclitable import pyCliTable

data = [
    {
        "ID": ["1", "2", "3"]
    },
    {
        "NAME": ["John", "Doe", "Quick"]
    },
    {
        "LOCATION": ["Foobar Foobar Foobar", "Foobar Foobar", "Foobar"]
    },
    {
        "INTRODUCTION": [
            "Hello! My name is John Doe and I'm from the bustling city of New York.",
            "I have a passion for technology and enjoy exploring the diverse cultures that thrive in this vibrant city.",
            "As a software engineer, I'm dedicated to creating innovative solutions that impact people's lives positively."
        ]
    }
]

config = ["Green", "italic"]
header_config = ["bold", "red"]

result = pyCliTable.table(data=data, config=config, table_color="red", header_config=header_config, word_space=1)

print(result)The following are the valid values forconfigand andheader_configarguments.config = ["red", "green", "yellow", "blue", "magenta", "cyan", "white", "underline", "bold", "italy"]
Package: pyclitool
pyclitool is a command line utility that allow you to map/filter/reduce your input with a Python one liner, line by line.Installing:sudo pip install pyclitoolUsage:Here are some powerful examples of what you can do with thepycommand line utility.Calculate the length of the file names in your current directory:`bash ls | py "len(x)" `Sum a list of numbers using a reduce function:`bash echo-n"1\n2\n3\n4\n5\n" | py-r"int(x)+int(y)"`Filter only lines from a CSV which the sixth column is greater than 3, skipping the header row of the CSV`bash cat wine_data.csv | py-s-f"float(x.split(',')[5])> 3.0" `Author:Ron Reiter <ron.reiter@gmail.com>
Package: pycli_tools
A python module to help create predictable command line tools for python >= 2.6 and 3.xpycli_toolsis a python module that wraps theArgumentParserclass from the
build-inargparsemodule.If you use it in your command line scripts you will get some defaults options
added to your application such as–verboseand–quietto control the
verbosity of your application (using the pythonloggingmodule).Also there is the–configoption that gives you the ability to read command
line arguments from a configuration file to save users of your application a
lot of typing (e.g.~/.myapprc).Copyright (c) 2013 Nico Di Rocco.License: MIT (seeLICENSEfor details).installationThe easiest way is to install using pip:$pipinstallpycli_toolsRead the documentation foralternative ways of installing.usageTo create amyappcommand that reads its default configuration from~/.myapprcdo this:frompycli_tools.parsersimportget_argparserparser=get_argparser(prog='myapp',default_config='~/.myapprc')parser.add_argument('--database')parser.add_argument('file')args=parser.parse_args()The file~/.myapprccan contain the following:[myapp]database=/some/path/to/my/database.sqliteRead the documentation to seehow to use pycli_tools.documentationReadthe full documentationhere.
Package: pyclits
What is pyCliTS?Python Climate Time Series package is open-source python package for easy manipulation with climatic geo-spatial time series such as the reanalysis or CMIP5 outputs, which are usually distributed as netCDF4 files. The package includes functions for:manipulating the data [temporal and spatial slicing, interpolating, subtracting the climatological cycle = anomalising, normalising, filtering, subsampling, etc.]computing continuous complex wavelet transform [CCWT]constructing spatio-temporal surrogate data using Monte-Carlo approach [Fourier transform surrogates, amplitude adjusted FT, iterative amplitude adjusted FT, autoregressive surrogates using the VAR(p) model, multifractal surrogates]computing Singular Spectrum Analysiscomputing mutual information and conditional mutual information [using equidistant, equiquantal binning and k-nearest neighbour algorithms]constructing an empirical model from spatio-temporal data based on idea of LIMs [linear inverse modelling].Uses fast numpy, scipy and scikit-learn libraries and offers multi-thread computations when possible [e.g. computing wavelet transform per grid point].DocumentationInstead of proper documentation [I plan to add it later though!], I created a few examples on how to work with basic classDataField,SurrogateField,SSAand other functions. These can be found in examples folder. The folder also contain climate data to work on, all of them are publicly available and inside example_data folder, you can find disclaimer with links to the datasets.Dependenciespyclitsrelies on the following open source packagesRequired:numpyscipyRecommended:sklearncythonmatplotlibnetCDF4basemap toolkitpywaveletspathos multiprocessing(for improved multiprocessing capabilities)(All of them are installed via pip automatically when installing this package, except basemap, since it is not on PyPI. Basemap still can be installed via pip usingpip installgit+https://github.com/matplotlib/basemap.git)ContributingAll contributions are welcome! Just drop me an email or pull request.Versions0.1: initial version0.2: various minor bug fixes, added VARIMAX rotation as optional parameter in pca_components() method of DataFieldLicense informationpyclitsis MIT-licensed, for more information see the file LICENSE.txt
Package: pycliweather
The problem: I want to look up the weather from wunderground from my terminal without opening up a web browser. I figured “hey, this should be easy / fun to do using Python!” – WRONG! XML is always a pain to work with, and there is noeasyway to get XML schema into a dict. Most people don’t even use XML correctly; you should use JSON if you just have strings inside of XML tags and nothing more. Every API I’ve ever seen / worked with uses XML in this way, and so they could all replace it with themucheasier to parse JSON.Update: You can now pass in the location as the first argument to the script.Update 2: You can useanylocation search format that wunderground supports; this includes zipcode, airport code, city name and state, etc.
If Wunderground returns valid XML for your query, pycliweather will parse it; the searches are limited only by the Wunderground API.In the example below, I’m using ‘dallas texas’. There is also a default specified in the code should a location not be passed.Anyway, here is what should come out when you run this:likwid@heliospycliweather(master)$ weather dallas texas
Location: dallas+texas
Sunrise: 6:18
Sunset: 20:37
Moon visible: 95%Friday - Partly Cloudy - 79F to 99F - 0% chance of rain
Saturday - Partly Cloudy - 79F to 104F - 10% chance of rain
Sunday - Partly Cloudy - 79F to 101F - 10% chance of rain
Monday - Partly Cloudy - 77F to 99F - 10% chance of rain
Tuesday - Chance of a Thunderstorm - 77F to 95F - 20% chance of rain
Wednesday - Chance of a Thunderstorm - 76F to 92F - 30% chance of rain
Package: pycliwrapper
Generic Python CLI WrapperWrap any CLI tool to Python like syntax.Quick startfrompycliwrapperimportCliWrapperapt_cache=CliWrapper("apt-cache",parser=lambdastdout:stdout.splitlines())# Equivalent to run: "apt-cache search bash" and parsing# the output as a listres=~apt_cache.search.bashprint(res)Parsing output as JSON# Build a wrapper on top of main commandtw=CliWrapper("tw -o json",parser=json.loads)# Build the command that you want to execute# using Python syntax. A dot means a subcommand and# flags are pass as normal python variables.print("PIPELINES")cmd=tw.pipelines.list(filter="hello")# You can see the actual command that will be run# >> tw -o json pipelines list --filter="hello"print(f"Executing:{cmd}")# Execute it using the ~ operator and automatically# parse the output with the given parserprint(~cmd)# Build and execute the command in one line# >> tw -o json compute-envs listprint(~tw.compute_envs.list)# Mixing positional and flag arguments# >> tw -o json launch nf-core-nanoseq --workspace="community/showcase"print(~tw.launch("nf-core-nanoseq",workspace="community/showcase"))# More complex example# >> tw -o json runs view -i 2gHGbjH9fRDuaW task -t=1 --execution-timeprint(~tw.runs.view(i="2gHGbjH9fRDuaW").task(t=1,execution_time=True))Non standard CLI support# Build a wrapper on top of main commandnextflow=CliWrapper("nextflow")# Hello world# >> nextflow run "nextflow-io/hello"print(~nextflow.run("nextflow-io/hello"))# Mixing Nextflow options and pipeline options# >> nextflow run "nf-core/rnaseq" -profile "docker,test" -r "3.10.1" --outdir="./results"# TIP: the _ at the beginning means that you want to use a "-" instead of a "--" even if the key has more than one character# TIP: the _ at the end means that you want to use a " " instead of a "=" even if the key has more than one characterprint(~nextflow.run("nf-core/rnaseq",_profile_="docker,test",_r_="3.10.1",outdir="./results"))
Package: pyclj
A python reader/writer for clojure data literals.
On clojure’s extensible data notations, checkout Rich Hickey’s edn spec:https://github.com/richhickey/ednInstallpip install pycljUsageThe API is very similar to python’s built-in json module.dump(data, fileobj)dumps(data)load(fileobj)loads(string)Clojure -> Python Type MappingClojurePythonlistlistvectorlistsetsetmapdictnilNonestringstringintintfloatfloatbooleanbooleancharstringkeywordstringPython -> Clojure Type MappingPythonClojurelistvectorsetsetdictmapNonenilstringstringintintfloatfloatbooleanbooleanLicensepyclj is distributed under MIT license.
Package: pycln
A formatter for finding and removing unused import statements.Read the documentation on Github pages!Installation and usageInstallationPycln requires Python 3.7+ and can be easily installed using the most common Python
packaging tools. We recommend installing the latest stable release from PyPI with pip:$pipinstallpyclnUsageBydefaultPycln will remove any unused import statement, So the simplest usage is
to specify the path only:$pycln[PATH]Also, it's possible to runpyclnas a package:$python3-mpycln[PATH]NOTE: you may need to use-a/--alloption for more satisfying results. see-a/--all flag.Further information can be found in our docs:Usage and ConfigurationConfigurationPyclnis able to read project-specific default values for its command line options
from a configuration file likepyproject.tomlorsetup.cfg. This is especially
useful for specifying custom CLI arguments/options likepath/paths,--include,--exclude/--extend-exclude, or even--all.You can find more details in our documentation:--config [PATH] CLI optionAnd if you're looking for more general configuration documentation:Usage and ConfigurationUsed byThe following notable open-source projects trust and usePycln:cibuildwheelOpen Event Serverpybind11pywin32PoetryPyodideRichtypeshedThe following organizations usePycln:FOSSASIAPoetryPython Packaging AuthorityScikit-HEPAre we missing anyone? Let us know.LicenseMITContributingA big welcome for considering contributing to make the project better!You can get started by reading this:General guidlinesYou can also dive directly into the technicalities:Contributing technicalitiesChange logThe log has become rather long. It moved to its own file.SeeCHANGELOG.AuthorsThe author list is quite long nowadays, so it lives in its own file.SeeAUTHORSCode of ConductEveryone participating in thePyclnproject, and in particular in the issue tracker,
and pull requests is expected to treat other people with respect.Give a ⭐️ if this project helped you!
Package: pyclo
pycloPyclo is a collection of functions for Python named after the Clojure standard library to perform the equivalent operation of the respective Clojure function.Install withpip install pycloRationaleWhile immutability is neither idiomatic nor common in Python, it is still beneficial to implement the concept through engineering discipline. However, soon one will find oneself writing the same constructs over and over again, and even though these expressions are fairly succinct, it is much nicer to refer to them by name. The goal of this library is to provide a collection of functions that promote immutable manipulation of standard Python data structures as a concept without strictly enforcing it.They say that there are only two hard problems in software engineering, one of them being naming. Clojure is chosen as a source of inspiration for these functions because the author of this library considers Clojure's naming the gold standard.Referencefrom pyclo import *dissoc(dict, *keys)- return a copy ofdictwithout specifiedkeys.select_keys(dict, *keys)- return a copy ofdictonly containingkeys.get_in(dict, keys, default=None)- look up a sequence of keys in a nested dict.Developmentmake test
make lint
make upload  # upload to Pypi