Saravanan666/pypi-org huggingface dataset:
Package: clocky
ClockyClocky is a pseudo-port of GNU Time, written in Python. The output generally looks liketime.Certain format codes may not work exactly like they do in GNUtime.InstallationThis will install the clocky cli:pip install clockyUsageClocky can be run viaclockyorpython -m clockyusage: clocky [-h] [-p] [-o OUTPUT] [-f FORMAT] [-a] [-v] [-q] [-V] [-g] ...

A pseudo-port of GNU time to Python. You can look at the man page of time to
get some info about the args here. Certain format codes are not supported and
will return a ? in place of an actual value.

positional arguments:
  cmd                   The command to time.

options:
  -h, --help            show this help message and exit
  -p                    Use the portable output format.
  -o OUTPUT, --output OUTPUT
                        Do not send the results to stderr, but overwrite the
                        specified file.
  -f FORMAT, --format FORMAT
                        Specify output format, possibly overriding the format
                        specified in the environment variable TIME.
  -a, --append          (Used together with -o.) Do not overwrite but append.
  -v, --verbose         Give very verbose output about all the program knows
                        about.
  -q, --quiet           Don't report abnormal program termination (where
                        command is terminated by a signal) or nonzero exit
                        status.
  -V, --version         Print version information on standard output, then
                        exit successfully.
  -g                    A clocky-specific extension. When set, tries to act
                        similar to gnu time in terms of output. Otherwise by
                        default (without -f) clocky acts like bash's time
                        command.Simple ExampleClocky can be used to time function execution (just like the time command):> clocky echo "Hello World"
Hello World

real    0m0.007s
user    0m0.000s
sys     0m0.000s
Package: clocky-cli
clockyCLI for tracking hours workedThis was the first "installable" package I ever made. The code is very messy. It was originally used with easy install and I have used it for work every day since its conception. This is a great little program for keeping record of your punches in the event your company's system fails or you forget to punch-out at the end of the day. I have decided to publish the code and refactor it to be installable with pip.InstallRequires Python >= 3.8pip install clocky-cliFeaturesclocking in and outbreak timer that auto clocks back inoutput punches from timelog (similar totailon Linux)output timecard for a given weekvarious chartsedit dates if you forget a punchconfigurable settings (stored at~/.config/clocky/clocky.ini)Usageusage: clocky [-?] [-d] [-v | -i | -o | -t | -b [M] | -l [N] | -s [N] | -g [N] | -c [N] | -gc [N] | -h
              I [N ...] | --edit [D]]

Clocky: A timecard program! Arguments are mutually exclusive. (Except --debug)

options:
  -?, --help                Show this help message and exit.
  -d, --debug               Print debug information.
  -v, --version             show program's version number and exit
  -i, --in                  Clock in.
  -o, --out                 Clock out.
  -t, --toggle              Clock in if out, clock out if in.
  -b [M], --break [M]       Clock out for [M] minutes and clock back in. (default: 30)
  -l [N], --log [N]         Print log for last [N] days. (default: 7)
  -s [N], --sum [N]         Print summary for [N]th week ago. (default: 0)
  -g [N], --graph [N]       Print graphical summary for [N]th week ago. (default: 0)
  -c [N], --chart [N]       Print chart summary for [N]th week ago. (default: 0)
  -gc [N], -cg [N]          Combines graph and chart for [N]th week ago. (default: 0)
  -h I [N], --hist I [N]    Chart history for last [N] [I]ntervals. (D=days W=weeks)  ← Not yet implemented 
  --edit [D]                Edit timecard for [D]ate. (YYYY-MM-DD)

Try 'clocky --demo' for demonstrations.Example ImagesIssuesBe very careful about adding aclocky -ito your shell's profile. Sometimes shell profiles are reloaded which will cause unwanted punches. I experienced this firsthand in PowerShell: Took me way too long to debug. It's better to addclocky -ito a startup script that you run manually.If you are using Nerd Fonts or other fonts that support ligatures, you may experience rendering issues with some of the charts. (See Issue#13)Author@espehon
Package: cloc-plot
Welcome to cloc-plot 👋Render a donut chart for lines of code of multiple projects🏠HomepageInstallClone the repository andpipinstall--user.Usagecloc-plotpath/to/project/rootThis will place a file calledplot.pngin your current folder.ExampleAuthor👤Fin ChristensenTwitter:@fin_ger_githubGithub:@fin-gerShow your supportGive a ⭐️ if this project helped you!📝 LicenseCopyright © 2019Fin Christensen.This project isMITlicensed.This README was generated with ❤️ byreadme-md-generator
Package: clod
_Give your module the power of an object, withclod(and save a
little typing too)._Ever wanted to call a module directly, or index it?
Or just sick of seeingfrom foo import fooin your examples?clodis a tiny library that solves both these issues in one line of code,
by extending a module with the methods and members of a Python object.This is extremely handy for modules that primarily do one thing.EXAMPLE: Make a module callable# In your_module.pyimportclodA_CONSTANT=23@cloddefa_function(*args,**kwargs):print('a function!')returnargs,kwargs# Test at the command line>>>importyour_module>>>your_module(2,3,a=5)afunction!(2,3),{'a':5}>>>assertyour_module.A_CONSTANT==23EXAMPLE: Make a module look like an object# In your_module.pyimportclodA_CONSTANT=23clod(list(),__name__)# Test at the command line>>>importyour_module>>>assertyour_module==[]>>>assertyour_module.A_CONSTANT==23>>>your_module.extend(range(3))>>>print(your_module)[0,1,2]APIclod.clod(extension=None, name=None, properties=None, omit=None)(clod.py, 96-177)Extend the system module atnamewith any Python object.The original module is replaced insys.modulesby a proxy class
which delegates attributes, first to the extension, and then to the
original module.clodcan also be used as a decorator, both with and without
parameters.ARGUMENTSextensionThe object whose methods and properties extend the namespace.
This includes magic methods like __call__ and __getitem__.nameThe name of this symbol insys.modules.  If this isNonethenclodwill useextension.__module__.If thenameargument is given, it should almost certainly be__name__.propertiesThere is little need to use this argument.Properties in this list are copied directly from the module into the
custom class - they do not get overridden by the extension.Ifpropertiesis None, it defaults toclod.MODULE_PROPERTIESwhich seems to work well a lot of the timeomitThere is little need to use this argument.A list of methods _not_ to delegate from the proxy to the extension.(automatically generated bydokson 2020-07-18T15:46:33.018839)
Package: clode
clODE - an OpenCL based tool for solving ordinary differential equations (ODEs)clODE is a tool for solving ordinary differential equations (ODEs) using OpenCL. It is tailored to numerically solving many instances of a given ODE system in parallel, each with different parameter sets and/or initial conditions.The ODE solver runs entirely on the OpenCL device, supporting independent solver state per simulation (e.g., adaptive timesteps). clODE can return the full trajectories, though this is somewhat memory intensive. Alternatively, clODE supports computing features of the ODE trajectory (e.g., oscillation period) on the fly without storing the trajectory itself, enabling much larger parameter sweeps to be run with significant speedup over serial computation.clODE is written in C++ and OpenCL, and can be used directly in C++ programs or via the provided Python interface. The library is compiled using bazel and bazelisk, and it runs on Linux, Windows and MacOS.InstallationSeeinstallationfor instructions on how to install CLODE.Getting StartedSeeGetting Startedfor an example of clODE usage.SourceThe source code is available onGitHub.
Package: clodius
ClodiusDisplaying large amounts of data often requires first turning it into
not-so-large amounts of data. Clodius is a program and library designed
to aggregate large datasets to make them easy to display at different
resolutions.DemoInstall the clodius package:pipinstallclodiusAnd use it aggregate a bigWig file:curlhttps://raw.githubusercontent.com/hms-dbmi/clodius/develop/test/sample_data/geneAnnotationsExonsUnions.short.bed\>/tmp/sample.short.bed
clodiusaggregatebedfile/tmp/sample.short.bedThe output files can then be displayed usinghiglass-manage. For more information about viewing these types of files take a look at thehiglass docs.More examplesare available.File TypesNon-genomic RastersTSV FilesGenomic DataBed FilesBedGraph FilesBedpe-like FilesBigBed FilesBigWig FilesChromosome SizesCooler FilesGene AnnotationHiTile FilesMultivec FilesDevelopmentThe recommended way to developclodiusis to use acondaenvironment and
installclodiuswith develop mode:pipinstall-e".[dev]"TestingThe unit tests for clodius can be run usingpytest:pytestIndividual unit tests can be specified by indicating the file and function
they are defined in:pytesttest/cli_test.py:test_clodius_aggregate_bedgraph
Package: clodss
CLODSS:Close*Data-StructuresStoreclodssis a data-structureson-diskstore with an API largly compatible withredis. The goal is to develop a store with the simplicity of theredisAPI
which scales beyond memory capacity, allows harnessing multi-core processors, and
does not burden accesses with network latency.clodssis a product ofCodoma.tech.*"Close"as opposed to"Remote".Roadmap:Features will be implemented in the order of demand by the community. Please use
The issues section to vote for the next functionality to be developed.getsetdelincrincrbydecrdecrbykeysscanflushdbexpirepersistlistsllenlpoplpushrpoprpushlindexlsetlrangelinsertltrimlremhashmapshsethgethdelhkeyshvalueshgetallhmsethmget
Package: clog
clogThis project is now simply a shortcut for usingrich.If you want to save yourself a dependency, just userich.UsagePass any data into clog and it'll get pretty-printed.>>> from clog import clog
>>> data = {'here': 'is some data'}
>>> clog(data)You can also give it a title:>>> clog(data, title="My Data")Or change the color:>>> clog(data, title="My Data", color="red")ColorsThis library usesrichunder the hood, so it theoretically supports
any color thatrichsupports.DisclaimerTheclogfunction is now simply a wrapper around:fromrich.panelimportPanelfromrich.prettyimportPrettyfromrichimportprintprint(Panel(Pretty(msg),title=title,subtitle=subtitle,border_style=color))So, seriously... just userich.
Package: c-log
c_logМикропакет для цветного вывода на стандартный вывод
Актуальная версия пакета0.0.3Как использоватьПример установки пакетаpython3-mpipinstallc-log==0.0.3Пример использование пакетаimporttimefromc_logimportmsgmsg.ok('Test message')msg.ok('Test message','core')time.sleep(1)msg.info('Test message')msg.info('Test message','core')time.sleep(1)msg.warn('Test message')msg.warn('Test message','core')time.sleep(1)msg.error('Test message')msg.error('Test message','core')Пример стандартного вывода2021-12-1313:56:30[OK]Testmessage2021-12-1313:56:30[OK][CORE]Testmessage2021-12-1313:56:31[INFO]Testmessage2021-12-1313:56:31[INFO][CORE]Testmessage2021-12-1313:56:32[WARN]Testmessage2021-12-1313:56:32[WARN][CORE]Testmessage2021-12-1313:56:33[ERROR]Testmessage2021-12-1313:56:33[ERROR][CORE]TestmessageСборка пакетаpython3setup.pysdistbdist_wheeltwineuploaddist/*
Package: clogger
cloggerPython logger configuration, my way.clogger is a library that helps you to configure
python logging library in the way I like. It
helps configuration tasks such:multiple handlerslog level settingclogger contains two classes -
CustomLogger and CustomFormatter -
based on default logging library.CustomFormatter inherit and modify
logging.Formatter class in order to split
handler names at the last '.', to improve readability
of the log.CustomoLogger class can be used to initialize
and configure logging
library in a smart and easily replicable way.
It also enable a (small) set of preconfigured
actions.InstallationInstall clogger is as easy as runpip install clogger.UsageYou can configure log inside your script with
few code rows.fromcloggerimportCustomLoggerfromdatetimeimportdatetimenow=datetime.now().strftime('%Y%m%d')thisrunlog='thisrunlog_{}.log'.format(now)logger=CustomLogger(handler_name="mylog",stream_handler=True,file_handler=True,filenames=["default.log",thisrunlog],level="INFO",)In the above example three handlers
are defined: one stream handler and two file
handlers. After definition, the same logger
can be modified, to hack log level of all
handlers (of course, the handler must exists
in the namespace to be varied):# changing log level for all the handlerslogger.change_level('DEBUG')# changine level for some handlerslogger.change_level('DEBUG',["mylog","requests"])Two methods are definied to be immediately call
at the start and at the end of a script:logger.starting_message()#... a lot of code...logger.exiting_message()
Package: clogmaneo
CLOgmaNeoIntroductionWelcome to theOgmaCLOgmaNeo Python library. It implements SPH (Sparse Predictive Hierarchies) in a way similar to theAOgmaNeolibrary, but runs on accelerators using PyOpenCL.RequirementspyopenclInstallationFrom this directory:pip install .ImportingThe CLOgmaNeo module can be imported using:importogmaneoExamplesComing soon.ContributionsRefer to theCONTRIBUTING.mdfile for information on making contributions to CLOgmaNeo.License and CopyrightThe work in this repository is licensed under theCreative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. See theCLOGMANEO_LICENSE.mdandLICENSE.mdfile for further information.Contact Ogma vialicenses@ogmacorp.comto discuss commercial use and licensing options.CLOgmaNeo Copyright (c) 2023Ogma Intelligent Systems Corp. All rights reserved.
Package: clogs
clogs make coverage logsclogsis a tool to help log code coverage over time using Ned Batchelder’s
fabulouscoverage.py.InstallationInstallingclogsis viapip:pip install clogsUsageRequirementsgitandhgare optional external dependencies that can be used to track
coverage within VCS repositories. Thehgbinary is directly invoked by clogs.gitrepository access is provided byGitPython, which should be installed
by pip by default.Licenseclogsis licensed under the MIT License (found in this directory).flotis copyright (c) 2007-2009 IOLA and Ole Laursen under the same license.
Package: cloj
Clojure inspired helper functions for PythonThis is a small library with Clojure inspired helper functions. It uses only the standard library, without any external dependencies.The goal is to implement replicas of the Clojure funcs that I admire.InstallationWithpoetry(always recommended):poetryaddclojWith pip:pipinstallclojImplemented:take/droptake_while/drop_whilesomenth, first, second, third, fourth, fifth, forty_second, lastget-inSome examples:fromclojimporttake,droptake(3,[1,2,3,4,5])>>[1,2,3]drop(3,[1,2,3,4,5])>>[4,5]drop(100,[1,2,3,4,5])>>[]fromclojimportfirst,second,third,fourth,fifth,forty_second,lastfirst([1,2,3])>>1last([1,2,3])>>3first([])>>Nonefromclojimportget_insample={"foo":{"bar":[0,{"spam":"target"},1]}}get_in(sample,["foo","bar",1,"spam"])>>>"target"
Package: clojure_py
# clojure-pyAn implementation of Clojure in pure Python. [![Build Status](https://secure.travis-ci.org/halgari/clojure-py.png?branch=master)](http://travis-ci.org/halgari/clojure-py)## Why Python?It is our belief that static virtual machines make very poor runtimes for dynamic languages. They constrain the languages to their view of what the “world should look like” and limit the options available to language implementors. We are attempting to prove this by writing an implementation of Clojure that runs on the Python VM. We believe that with a proper dynamic JIT (like pypy) a version of clojure running on a dynamic VM can outperform its JVM and CLR counterparts.Aside from that, there are many Python libraries like PySide (Qt GUI), numpy, scipy, and stackless that do not have JVM counterparts, or at least the Python implementations are easier to use and learn. clojure-py will integrate tightly with thy Python VM and will be able to use all of these libraries.## Basic conceptsPython builtins are available under the py/ namespace. Actual python bytecodes can be injected via py.bytecodes/OPViewing the code athttps://github.com/halgari/clojure-py/blob/master/clojure/core.cljis probably the best way to get a feeling of what is possible, and how clojure-py implements certain functions.One note: clojure-py implements the new “property vs calling method” design used in ClojureScript:(.__name__ (module)) ; same as module.__name__() in python(.-__name__ (module)) ; same as module.__name__ in python## How can I help?At this point, find a need and fill it! Play around with clojure-py, start porting your favorite clojure lib, and see what is missing. Also feel free to join our [mailing list](http://groups.google.com/group/clojure-py-dev). We (the clojure-py devs) normally just send out a message either we plan on working on a certain aspect of clojure-py (either through a issue report or through the mailing list). Currently there are quite a few functions in clojure.core that need porting. Drop by the mailing list and let us know what your interests are, and we’ll be glad to offer suggestions and help however we can.## BlogFrom time to time, we’ll post status updates, ideas and plans to this bloghttp://clojure-py.blogspot.com/## Installation
Install 0.1.0 release:easy_install clojure-py
clojurepyTo run from GitHub checkout:python ./clojure.py## Unit tests# (must ‘easy_install nose’ or ‘pip install nose’ first)
nosetests## Runningclojurepy## License
Not endorsed by Rich Hickey, but this project contains code based on his workClojure-Py
Copyright (c) Rich Hickey. All rights reserved.
The use and distribution terms for this software are covered by the
Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
which can be found in the file epl-v10.html at the root of this distribution.
By using this software in any fashion, you are agreeing to be bound by
the terms of this license.
You must not remove this notice, or any other, from this software.
Package: clok
Clok====[![https://badge.fury.io/py/clok](https://badge.fury.io/py/clok.png)](https://badge.fury.io/py/clok)[![Build Status](https://travis-ci.org/fspot/clok.svg)](https://travis-ci.org/fspot/clok)[![Coverage Status](https://coveralls.io/repos/fspot/clok/badge.png)](https://coveralls.io/r/fspot/clok)[![License](https://pypip.in/license/clok/badge.svg)](https://pypi.python.org/pypi/clok/)Listen to radio and set up alarms from your computer, and control it from a web UI. Relies on `mplayer`.![Screenshot](https://framapic.org/FASezG3yXdaR/1n2hthSsAA9e.png)#### Features :- easy to install (pure python dependencies: just `pip install clok`)- easy to use (just type `clok`)- list / add / remove / edit radios and alarms- can play online streams (webradios), but also local tracks or playlists- player controls: play / pause / volume up / volume down / mute / go backward / go forward- extra player controls for playlists : previous track / next track / shuffle- alarms settings allow to chose trigger time, duration, days of week- can be controlled via web ui or via REST API (python client inside)- web ui translated in french and english (according to system language)Installation------------```$ sudo apt-get install mplayer$ sudo pip install clok```Usage-----```ClokUsage:clok [-a ADDRESS -p PORT --database FILE --log LOG]clok -h | --helpclok -v | --versionOptions:-h --help             Show this screen.-v --version          Show version.-d --database FILE    Specify the database filename (JSON storage).[default: ./db.json]-a --address ADDRESS  Specify on which address to listen.[default: 0.0.0.0]-p --port PORT        Specify on which port to listen.[default: 8000]--log LOG             Specify where to log messages, and which level to set.Can be "stderr", "syslog", or a filename, followed by the level.[default: stderr:INFO]```Example-------```$ clok -d /home/fred/clokdb.json -p 8080```This command will run `clok` on port 8080 and store radios and alarms settings in JSON file `/home/fred/clokdb.json`.Launch at startup-----------------Clok is easy to launch at startup. For example with `supervisord` :```[program:clok]command=/usr/local/bin/clok -d /home/fred/clokdb.jsonuser=freddirectory=/home/fredstopsignal=INT```Python client-------------```python>>> from clok.client import ClokClient>>> cc = ClokClient()>>> cc.list_alarms().json(){u'alarms': [{u'shuffle': False, u'uuid': u'52f5f8e0-7d09-4d40-b0bd-0acab3220383', u'days': [0, 1, 2, 3, 4], u'disabled': False, u'start': 27000, u'webradio': u'7baec513-0fe8-48f0-9411-69f8b40bc580', u'duration': 1800}], u'status': u'success'}>>> cc.pause().json(){u'status': u'success'}```
Package: clom
Clom is a Python Command Line Object Mapper. It’s intended to make generating generating commands and escaping arguments
easier for command line interaction. It’s particularly useful when used withFabricorsubprocess.DocumentationClom on GitHubClom on PypiInstallationInstall withpiporeasy_install.pip install clomUsage ExamplesImport:>>> from clom import clomBuild a command:>>> clom.echo("Don't test me")
"echo 'Don'\\''t test me'"Augment with arguments:>>> clom.ls.with_opts('-a', '-t', l=True).with_args('~/')
'ls -a -t -l '~/''
>>> clom.curl('http://dev.host', X='POST', data='message=hello')
'curl -X POST --data message=hello http://dev.host'Use sub commands:>>> clom.git.checkout('mybranch')
'git checkout mybranch'Execute with ease:>>> clom.ls.shell.all()
['clom', 'clom.egg-info', 'docs', 'tests']

>>> clom.git.status.shell('.').first()
'# On branch master'Iterate over results:>>> for path in clom.ls.shell():
...     print path
...
clom
clom.egg-info
docs
testsHandle errors:>>> clom.vagrant.up.shell()
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/Users/mthornton/Dropbox/Projects/python-clom/src/clom/shell.py", line 164, in __call__
    raise CommandError(status, stdout, stderr, 'Error while executing "%s" (%s):\n%s' % (cmd, status, stderr or stdout))
CommandError: Error while executing "vagrant up" (3):
No Vagrant environment detected. Run `vagrant init` to set one up.Group commands:>>> from clom import AND, OR
>>> OR(clom.vagrant.up, clom.echo('Vagrant up failed'))
'( vagrant up || echo 'Vagrant up failed' )'
>>> OR(clom.vagrant.up, clom.echo('Vagrant up failed')).shell()
<clom.shell.CommandResult object at 0x10c4a85d0>
>>> print OR(clom.vagrant.up, clom.echo('Vagrant up failed')).shell()
No Vagrant environment detected. Run `vagrant init` to set one up.
Vagrant up failedRe-use commands:>>> vbox = clom.VBoxManage
>>> vbox.list.runningvms
'VBoxManage list runningvms'
>>> vbox.list.runningvms.shell.all()
['']
>>> vbox.list.vms.shell.all()
['"Windows Base" {949ec0af-92d0-4140-8a6c-36301ca6f695}']Background tasks:>>> clom.VBoxHeadless.with_opts(startvm="Windows Base").background()
'nohup VBoxHeadless --startvm 'Windows Base' &> /dev/null &'
>>> clom.VBoxHeadless.with_opts(startvm="Windows Base").background().shell()
<CommandResult return_code=0, stdout=0 bytes, stderr=0 bytes>

>>> vbox.list.runningvms.shell.all()
['"Windows Base" {949ec0af-92d0-4140-8a6c-36301ca6f695}']Works great with fabric:>>> from fabric.api import run, local
>>> local(clom.ls)
[localhost] local: ls
clom            clom.egg-info   docs            nohup.out       tests
''Can even create fab commands:>>> clom.fab.test('doctest', 'unit').deploy('dev')
'fab test:doctest,unit deploy:dev'
>>> clom.fab.with_opts('-a', hosts='dev.host').deploy.with_args('dev','test')
'fab -a --hosts dev.host deploy:dev,test'See more examples and the API in theClom DocumentationRunning TestsTest are run using pytest:pip install pytestpython tests/runtests.py -v --doctest-modules