Saravanan666/pypi-org huggingface dataset:
Package: kindlepush
This project was created by@blahgeek,
now maintained by@lord63.IntroAs we all know, we can use Amazon’s free 3G network to deliver our docs,
but we need to manually click the deliver button in the browser. This
script is born to rescue us from this boring thing. Config this script,
add it to thecrontaband you’re done. All your docs will be sent to
your kindle automatically.RequirementPython 2.7Requests libBeautifulSoup libLinux platform (I haven’t test it on windows)Install$ sudo pip install kindlepushFeatureIt has a log file, you can check which file you’ve delivered.Use sqlite database, don’t worry about that a doc will be missed or
delivered twice.Get pending deliveries.UsageUsage: kindlepush <command> [option]

Options:
  -h, --help            output the help menu
  -V, --version         output the version number
  -c, --count [count]   the count of the docs to deliver
  -n, --number [number] show how many logs

Commands:
  read                  read the log file
  pending               get pending deliveriesfirst, touch a new file namedkindlepush_config.jsonunder/usr/local/bin, including those:{
    "email": "xxxxxx",              # your email
    "password": "xxxxxx",           # your amazon's password
    "directory": "/path/to/save/",  # save log file and database, end with '/'
    "count": 15,                    # check how many docs every time that whether those have been deliverred before, default 15 is one page a time.
    "number": 4                     # the default count of log messages when you read from log file
}deliver your doc from your kindle library to your kindle:$ kindlepush
Login...
Delivering...
delivering YOUR DOC
Done. Save to db.
delivering YOUR DOC
Done. Save to db.read the log file to get to know the docs which you have delivered:
(default is 4 messages, you can use-nNUMBERto get more
information.)$ kindlepush read
2014-09-23 07:40:32,077 [INFO] delivered YOURDOC
2014-09-23 07:40:33,125 [INFO] delivered YOURDOC
2014-09-23 07:40:34,183 [INFO] delivered YOURDOC
2014-09-24 14:12:34,506 [INFO] delivered YOURDOCget pending deliveries:$ kindlepush pending
Login...
Pending Deliveries:
        你好
        niceGet help viakindlepush-handkindlepush read-h.WikiseewikiLicenseMIT
Package: kindlepy
CLI to send files to your kindle email address, or any other email address.Config:Set the sender email:kindlepy config –sender <email>Set the receiver email:kindlepy config –receiver <email>In case any of the mails are not configured, the script will ask for them.Usage:Send files to the receiver direction:kindlepy send <file>…Supported email services:Google (googlemail, gmail) - Requires to activate less secure apps.Microsoft (hotmail, outlook)Yahoo (yahoo)AOL (aol)
Package: kindlereader
# ReadMeKindlereader2 is a project aimed to push articles from rss reader or rss source to kindle. It is forked from work [kindlereader](https://github.com/jiedan/kindlereader/). Now the rss reader support work is based on [librssreader](https://github.com/fireinice/librssreader), and now support inoreader. More rss reader support would be added by the librssreader.## LisenceLicensed under the MIT license: [http://www.opensource.org/licenses/mit-license.php]()## Features* Support to push inoreader articles to kindle## Usage### Dependency* python(2.7 recommanded)* pip### Setup_By now ALL feature are only tested on Linux environment_.Drop [kindlegen](http://www.amazon.com/gp/feature.html?docId=1000765211) in any dir that you can find it by `which kindlegen`$ kindlereader.pyt --generate_config # a config.ini would be generated in the dirFill Infos into the config.ini and then$ kindlereader.py## ThanksOriginally created by [kindlereader](https://github.com/jiedan/kindlereader/)
Package: kindle-sdr-cleaner
Kindle SDR CleanerClean useless.sdrfolders in your Kindle.Installationpipxinstallkindle-sdr-cleanerUsagekindle-sdr-cleaner# clean in current folderkindle-sdr-cleaner/Volumes/Kindle# clean in /Volumes/KindleChangelogv0.1.1Fix: Ignore PermissionError when iter dirsv0.1.0Initial release
Package: kindlestrip
kindlestripA pip install-able conversion of Paul Durrant's kindlestrip library to strip the penultimate record from a Mobipocket file. (http://www.mobileread.com/forums/showthread.php?t=96903)UsageTo install:pipinstallkindlestripTo use:$kindlestripinput.mobioutput.mobi

$du-sh*
268Kinput.mobi
200Koutput.mobi
Package: kindle-to-md
Kindle to MarkdownKindle to Markdown converts Kindle notes and highlights exported by Bookcision as JSON into Markdown.InstallationEnsurepip is installed.pip install kindle-to-mdUsageTo export your Kindle notes and highlights using Bookcision:Install Bookcision.View yournotes an highlightson Amazon.Run the Bookcision bookmarklet.Select Download | as JSON from the Bookcision menu.To convert your notes to Markdown:In terminal, runkindle-to-md {downloaded_notes.json} {output_file.md}You can also runkindle-to-md {downloaded_notes.json}to output the notes to terminal.To import to another Python script:importkindle_to_mdBug Reports and Feature RequestsTo submit a bug report or make a feature request,create an issueon the GitHub repostitory.DevelopmentThe development repository is located athttps://github.com/mikethicke/kindletomd.Pull Requests should be accompianed by unit tests that fail before the changes are merged and pass afterwards.This project follows Google'sPython Style Guide.This package uses a src layout, so you will have to build and install the package locally to run the tests.Sample development workflow (for MacOS / Linux):Clone the repository:git clone https://github.com/mikethicke/kindletomd.gitChange to your repository directory:cd kindletomdCreate a virtual environment:python3 -m venv venvActivate the virtual environment:source venv/bin/activateInstall development dependencies:pip install -r requirements.txtWrite test or tests that fail for the bug you are addressing or feature you are developing. Tests are located in thetestsdirectory. Avoid putting test data directly in the unit tests themselves. Instead, put data intest-datadirectory or inconftest.py. This makes it easier to reuse data in other tests. If your test addresses a specific issue, reference the issue in the test's docblock.Build the package:python -m buildInstall the package locally:pip install dist/{pacakge}.tar.gzRun pytest:cd testspytestYour tests should fail and none others should.Implement your changes.Rebuild the package.Reinstall the package.Re-run pytest and confirm your changes cause your tests to pass.Commit your changes and open a Pull Request on Github to merge your changes.
Package: kindplay
# kindplaykindplay is an automation command line to setup a local Kubernetes cluster with a collection of addons using Helm charts.It’s a helpful tool to fast setup a reusable local cluster using yaml and helm charts to experiment tools and also create local development environment.## How to Use### Pre-requisitesPython and pipDockerKubernetes Kind tool. ([Install kind](https://kind.sigs.k8s.io/docs/user/quick-start/#installation))Helm. ([Install Helm](https://helm.sh/docs/intro/install/))### Install kindplayUse pip to install the kindplay package:` pip install kindplay `### Create or use an existent playground structureYou can find a playground catalog at [tchelovilar/kind-playgrounds](https://github.com/tchelovilar/kind-playgrounds) repository. Once you have a playground structure, runkindplay startto start your cluster:` kindplay start <playground_path> `## Playground folder structurekindplay use kind config file and helm charts to spin up the local kubernetes cluster.rootkind.yamlContains the kind settings, you can find more from [kind documentation](https://kind.sigs.k8s.io/docs/user/configuration/).rootplayground.yamlGeneral special settings, can be used to specify extra commands or define the helm charts instalation order.rootkubernetesDirectory which contains folder structure composed by namespace and helm chart folder with helm
Package: kindred
KindredKindred is a Python3 package for relation extraction in biomedical texts. Given some training data, it can build a model to identify relations between entities (e.g. drugs, genes, etc) in a sentence.InstallationYou can install "kindred" viapipfromPyPIpipinstallkindredKindred relies on theSpacytoolkit for parsing. After installing kindred (which also installs spacy), you will need to install a Spacy language model. For instance, the command below installs the English language model::python-mspacydownloaden_core_web_smUsageCheck out thetutorialthat goes through a simple use case of extracting capital cities from text. More details and the full documentation can be found atreadthedocs.BioNLP Shared Task Exampleimportkindred# Load the SeeDev corpustrainCorpus=kindred.bionlpst.load('2016-SeeDev-binary-train')devCorpus=kindred.bionlpst.load('2016-SeeDev-binary-dev')# Create a copy of the dev corpus to make predictions onpredictionCorpus=devCorpus.clone()predictionCorpus.removeRelations()# Create a relation classifier, train it and make predictionsclassifier=kindred.RelationClassifier()classifier.train(trainCorpus)classifier.predict(predictionCorpus)# Get the F1 score of the predicted relationsf1score=kindred.evaluate(devCorpus,predictionCorpus,metric='f1score')PubAnnotation Examplecorpus=kindred.pubannotation.load('bionlp-st-gro-2013-development')PubTator Examplecorpus=kindred.pubtator.load([19894120,19894121])Input FormatsKindred can load several formats, including BioNLP Shared Task, JSON, BioC XML and a simple tag format. Check out thefile format documentationfor example data and code.CitingIt would be wonderful if you could cite theassociated paperfor this package if used in any academic research.@article{lever2017painless,title={Painless {R}elation {E}xtraction with {K}indred},author={Lever, Jake and Jones, Steven},journal={BioNLP 2017},pages={176--183},year={2017}}ContributingContributions are very welcome.LicenseDistributed under the terms of theMITlicense, "kindred" is free and open source softwareIssuesIf you encounter any problems, pleasefile an issuealong with a detailed description.
Package: kinds
classesSmart, pythonic, ad-hoc, typed polymorphism for Python.FeaturesProvides a bunch of primitives to write declarative business logicEnforces better architectureFully typed with annotations and checked withmypy,PEP561 compatibleAllows to write a lot of simple code without inheritance or interfacesPythonic and pleasant to write and to read (!)Easy to start: has lots of docs, tests, and tutorialsInstallationpipinstallclassesYou also need toconfiguremypycorrectly and install our plugin
to fixthis existing issue:# In setup.cfg or mypy.ini:[mypy]plugins=classes.contrib.mypy.typeclass_pluginWithout this step, your project will report type-violations here and there.We also recommend to use the samemypysettingswe use.Make sure you know how to get started,check out our docs!ExampleImagine, that you want to bound implementation to some particular type.
Like, strings behave like this, numbers behave like that, and so on.The good realworld example isdjangorestframework.
It is build around the idea that different
data types should be converted differently to and fromjsonformat.What is the "traditional" (or outdated if you will!) approach?
To create tons of classes for different data types and use them.That's how we end up with classes like so:classIntField(Field):deffrom_json(self,value):returnvaluedefto_json(self,value):returnvalueIt literally has a lot of problems:It is hard to type this code. How can I be sure that myjsonwill be parsed by the given schema?It contains a lot of boilerplateIt has complex API: there are usually several methods to override, some fields to adjust. Moreover, we use a class, not a callableIt is hard to extend the default library for new custom types you will have in your own projectThere should be a better way of solving this problem!
And typeclasses are a better way!How would new API look like with this concept?>>>fromtypingimportUnion>>>fromclassesimporttypeclass>>>@typeclass...defto_json(instance)->str:..."""This is a typeclass definition to covert things to json."""...>>>@to_json.instance(int)...@to_json.instance(float)...def_to_json_int(instance:Union[int,float])->str:...returnstr(instance)...>>>@to_json.instance(bool)...def_to_json_bool(instance:bool)->str:...return'true'ifinstanceelse'false'...>>>@to_json.instance(list)...def_to_json_list(instance:list)->str:...return'[{0}]'.format(...', '.join(to_json(list_item)forlist_itemininstance),...)...See how easy it is to works with types and implementation?Typeclass is represented as a regular function, so you can use it like one:>>>to_json(True)'true'>>>to_json(1)'1'>>>to_json([False,1,2])'[false, 1, 2]'And it easy to extend this typeclass with your own classes as well:>>># Pretending to import the existing library from somewhere:>>># from to_json import to_json>>>importdatetimeasdt>>>@to_json.instance(dt.datetime)...def_to_json_datetime(instance:dt.datetime)->str:...returninstance.isoformat()...>>>to_json(dt.datetime(2019,10,31,12,28,00))'2019-10-31T12:28:00'That's how simple, safe, and powerful typeclasses are!
Make sure tocheck out our docsto learn more.LicenseBSD 2-Clause
Package: kindtool
kindtoolPython program for simplyfing workflows with kind.kindis a tool for running local Kubernetes clusters using Docker container “nodes”.Withkindtoolyou can add a simpleKindfileto your project. You can crate, destroy, start and maintain ak8scluster for ci or development.InstallationRequirements:dockerpython3kindkubectloptional: helmKind installationOfficial documentation:https://kind.sigs.k8s.io/docs/user/quick-start/Fast lane:get_latest_release() {
  curl --silent "https://api.github.com/repos/$1/releases/latest" | # Get latest release from GitHub api
    grep '"tag_name":' |                                            # Get tag line
    sed -E 's/.*"([^"]+)".*/\1/'                                    # Pluck JSON value
}
KIND_LATEST=$(get_latest_release kubernetes-sigs/kind)
ARCH=$(dpkg --print-architecture 2>/dev/null || echo "amd64")

curl -Lo ./kind https://kind.sigs.k8s.io/dl/${KIND_LATEST}/kind-linux-${ARCH}
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kindKindtool installation$ pip3 install kindtoolKubectl installationLinux:https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/Windows:https://kubernetes.io/docs/tasks/tools/install-kubectl-windows/Helm installationhttps://helm.sh/docs/intro/install/Workflow# creates a new Kindfile (edit for your needs)
$ kindtool init -d <projectdir>

# creates the cluster - this will create a .kind directory next to Kindfile
$ kindtool up

# kills the kind cluster - configuration, k8s config is removed,
# the persistent data will be kept in .kind/data
$ kindtool destroy

# kills the kind cluster  and removes the data folder
# this needs to be run as root! Docker might created files that have 0/0 uids/gids
$ sudo kindtool destroy -f

# is kind running - print status information
$ kindtool status

# start the k8s dashboard
$ kindtool dashboard

# returns the directory with the config files
# can be used as export KUBECONFIG=$(kindfile get kubeconfig)
$ kindtool get kubeconfigExampleshttps://github.com/egandro/kindtool-examples
Package: kind-wycliffwasonga
kindQuery Korea Investor's Network for Disclosure(KIND) for Korean companies' published documents.InstructionsThe package requires that you have Mozilla Firefox, Internet browser, installed.Install:pip install kind-wycliffwasongaUsageCLI$kindsearch--company241560$kindsearch--company241560--start2021-01-01--end2021-03-312 Libraryfromdatetimeimportdatetimeimportkindstart_date=datetime(2021,1,1)end_date=datetime(2021,3,31)results=kind.search("241560",start_date,end_date)
Package: kinematics
| |Travis Build Status|   | |Coverage Status|   | |Documentation Status|   | |Citation| |.. |Travis Build Status| image:: https://travis-ci.org/skulumani/kinematics.svg?branch=master:target: https://travis-ci.org/skulumani/kinematics.. |Coverage Status| image:: https://coveralls.io/repos/github/skulumani/kinematics/badge.svg?branch=master:target: https://coveralls.io/github/skulumani/kinematics?branch=master.. |Documentation Status| image:: https://readthedocs.org/projects/kinematics/badge/?version=latest:target: http://kinematics.readthedocs.io/en/latest/?badge=latest:alt: Documentation Status.. |Citation| image:: https://zenodo.org/badge/82479376.svg:target: https://zenodo.org/badge/latestdoi/82479376Attitude Kinematics in Python=======================``kinematics`` is Python package to perform attitude kinematics.It is written completely in Python and only requires ``numpy`` as a runtimedependency.Installation============Install ``kinematics`` by running : ``pip install kinematics`` to install from pypiTo install a development version (for local testing), you can clone therepository and run ``pip install -e .`` from the source directory.Documentation=============Docs will be hosted on Read the DocsUpdate travis to do the build, install, and test for both pypi install and conda installCiting ``kinematics``================If you find this package useful, it would be very helpful to cite it in your work.You can find a citation link above.Dependencies============The only hard dependency is on ``numpy``.All vectors and operations utilize the numerical tools of numpy.You should already have it installed, ``pip install numpy``.
Package: kinematic-snake
Snake Locomotion Kinematics
·A kinematic model of snake-locomotion, with and without lifting, following our publication.
Can run single specified cases or many independent cases in parallel to generate a phase-space.:rocket: Before installing the package, check out an interactive, online versionat this link.InstallationFor a system wide install, usepython3-mpipinstallkinematic-snakeFor a local install, please clone this repository and execute the following in the repository directory.python3-mpipinstall--user.You can then use one of theexamplesfor running a single simulation or
a parameter sweep of simulations. For more information seeUsage and examplesExtrasIf you want to take full advantage of the package (such as running a phase-space of cases in parallel),
please executepython3-mpipinstallkinematic-snake[extras]Usage and examplesThe simplest example runs asingle simulationand produces output
plots. For convenience, the same code is also listed below.fromkinematic_snakeimportrun_and_visualize,Snakesnake,sol_history,time_period=run_and_visualize(froude=1,# The froude numbertime_interval=[0.0,10.0],# Time interval of simulationsnake_type=Snake,# Type of snake, can be Snakemu_f=1.0,# Forward friction coefficient ratio, determined from `froude`mu_b=1.5,# Backward friction coefficientmu_lat=2.0,# Lateral friction coefficient)More examples including the one above are given in that example file. The code is designed to
encourage the user to play around with the model of the snake using
any activation function (for both the snake gait, specified by curvature, and the lifting). The documented examples
provided in theexamplesfolder should get you started.Numerical algorithmsDetails on the algorithms employed can be found in our following paper. If you are using this package,
please cite the work below :)Friction modulation in limbless, three-dimensional gaits and heterogeneous terrains, doi :10.1038/s41467-021-26276-x@Article{Zhang2021,
author={Zhang, Xiaotian
and Naughton, Noel
and Parthasarathy, Tejaswin
and Gazzola, Mattia},
title={Friction modulation in limbless, three-dimensional gaits and heterogeneous terrains},
journal={Nature Communications},
year={2021},
month={Oct},
day={19},
volume={12},
number={1},
pages={6076},
issn={2041-1723},
doi={10.1038/s41467-021-26276-x},
url={https://doi.org/10.1038/s41467-021-26276-x}
}Running testsCheckInstallationto see how to install the package. Once that is done, install the test requirements
usingpython3-mpipinstall-rtests/requirements.txtThis package usespy.testfor running unit and integration tests. To run the tests, executepython3-mpytestfrom the repository directory.
Package: kines
KinesFriendly Command Line Interface forAmazon Kinesis Data StreamsInstallpip install kinesSetupaws configureCommandsList all Kinesis Streamkines lsThis command lists streams with their open shard count, enhanced consumers count, retention period and encryption type. Internally this command callslist-streamsanddescribe_stream_summarymethods ofBoto3Kinesis client.List Kinesis Stream Shardskines lss <stream-name>This command will show you open as well as closed shards of a Kinesis stream.For detailed output Runkines lss <stream-name> -dFind shard for partition keykines find prod-clickstream -p 123455 -p 8900FromKinesis DocsA partition key is used to group data by shard within a stream. Kinesis Data Streams segregates the data records belonging to a stream into multiple shards. It uses the partition key that is associated with each data record to determine which shard a given data record belongs to. Partition keys are Unicode strings with a maximum length limit of 256 bytes. An MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. When an application puts data into a stream, it must specify a partition key.This command comes handy when you want to determine shard for a partition key. This Command can accept multiple partition keys.Walk through kinesis recordskines walk <stream-name> <shard-id> -s <sequence-number> -n <number-of-records-per-call>You can use this command to debug kinesis records. This command internally creates aShard Iterator. If you don't specifysequence-numberthen a ShardIterator is created with typeTRIM_HORIZON, which allows you to fetch from oldest Kinesis records in shard. When you specifysequence-numbera ShardIterator is created withAT_SEQUENCE_NUMBERtype, which fetches data from the specified sequence number.
The Kinesis record's data is decoded usingbase64decoder. You can press ⏎ to fetch more records or typento abort.Use-toption to get records from 1 hour 10 minutes ago. Example:kines walk click-stream 000000000000 -t '1h10m'Use-loption to start from latest records. Example:kines walk click-stream 000000000000 -lUse-foption to poll records repeatedly. Example:kines walk click-stream 000000000000 -l -fGet report for Kinesis StreamThe report command gives you statistics about your Kinesis Stream. Internally, this command callsget_metric_dataof Boto3 Cloudwatch client.Please take a look at legends command for shortforms used in this report.View all short forms and legendskines legendsHow to build in Dev?pip install --editable .How to publish to pypi?python3 setup.py sdist bdist_wheeltwine upload --skip-existing dist/*
Package: kinesis
kinesisA kinesis consumer with color.InstallationpipinstallkinesisCredentials for AWS are read from~/.aws/credentials.Optionally, config is loaded from~/.aws/config.UsageConsumeStart consuming at the latest shard iterator:kinesisconsume--streammy-streamConsume and CaptureIf you want to capture:kinesisconsume--streammy-stream--captureProduce from a filekinesisproduce--streammy-stream-f./my_file.json--repeat100