Saravanan666/pypi-org huggingface dataset:
Package: cotter
Cotter Login SDK for Python CLICotter's Python SDK for Passwordless Authentication using Email/Phone Number for your CLI and scripts.
To read more about Cotter, get started with our 📚 integration guides and example projects.Find the most updated documentation on our site or our Github:DocumentationGithubInstallationpip install cotterFind the latest versions herehttps://pypi.org/project/cotter/UsageGet yourAPI_KEY_IDfromCotter's Dashboard.Step 1: Copycotter_login_success.htmlfrom theexamplefolder.You can make your own Success page. After the user successfully logged-in, the website will redirect tohttp://localhost:portand you should show a "Success message" and tell the user to go back to your terminal. Feel free to copy our example page and modify it.Put the success page with namecotter_login_success.htmlat the same directory as where you put the code belowStep 2: Call Cotter's login functionimportcotterapi_key="YOUR API KEY ID"port=8080# Open a port to receive code from the website after successful authenticationresponse=cotter.login_with_email_link(api_key,port)print(response)Available methods:Using Email# Use Magic Linkresponse=login_with_email_link(api_key,port)# Use OTPresponse=login_with_email_otp(api_key,port)Using Phone Number# Use Magic Linkresponse=login_with_phone_link(api_key,port)# Use OTPresponse=login_with_phone_otp(api_key,port)Storing the tokensStore the tokens to a file:fromcotterimporttokenhandlertokenhandler.store_token_to_file(response["oauth_token"],"cottertoken.json")Get the tokens to a file (automatically refresh if needed):fromcotterimporttokenhandleroauth_token=tokenhandler.get_token_from_file("cottertoken.json",api_key)Refreshing tokens (if not using the functions above)# This will only refresh if neededfromcotterimporttokenhandleroauth_token=tokenhandler.refresh_token(oauth_token,api_key)Validating tokensfromcotterimportvalidateaccess_token_decoded=validate.validate_access_token(response["oauth_token"]["access_token"],api_key)id_token_decoded=validate.validate_id_token(response["oauth_token"]["id_token"],api_key)TroubleshootingAllowed Origin ErrorIf you get an error like this:{"msg":"The redirect URL http://localhost:1234 or the parent origin :// is not in the list of allowed URLs. Please contact the site owner.","type":""}You may have set up a list of Allowed URLs in the dashboard. Make sure you add these 2 urls:http://localhost:<PORT>based on the port you used above://(this is a bug, join ourSlack channelto be updated)
Package: cotton2k.core
Cotton2K is a cotton simulation model specially adapted for irrigated cotton production in arid regions.
It was originally written byProf. Avishalom Marani, and rewrite in Python byTang Ziya.Thiscotton2k-corepackage is distributed underGPL 3.0 or later. This version has been upgraded to run on Python.If you have any problem, feel free to open an issue.
Package: cottonmouth
cottonmouth===========Pure-Python HTML generation, inspired by [Hiccup][1].```pythonfrom cottonmouth.html import renderfrom cottonmouth.tags import html, head, body, title, meta, link, h1def welcome(user=None, **context):return ['p', 'Welcome' + (' back!' if user else '!')]content = (# Feel free to use raw HTML'<!doctype html>',# Tags are represented as sequences with a tag name at the head[html,# Or just use strings instead of the default tag symbols['head',[title, 'The Site'],# Attributes are passed as a dict immediately after the tag[meta, {'charset': 'utf-8'}],[link, dict(rel='stylesheet', type='text/css',href='static/layout.css')]],[body,# You can also call tags as functions with the content as# the first argument and attributes as `kwargs`[header, h1(u'The Website', id='header')],# Use "#id.class" shortcuts to easily create `div` elements['#map.pretty-map'],# Functions will be called with context and the results rendered['#main', welcome]]])render(*content, user=None)```Equivalent output:```html<!doctype html><html><head><title>The Site</title><meta content="text/html;charset=utf-8" http-equiv="content-type"><link href="static/layout.css" type="text/css" rel="stylesheet"></head><body><h1 id="header">Welcome to the site!</h1><div id="map" class="pretty-map"></div><div id="main"><p>Welcome!</p></div></body></html>```### ClassesThere's a shortcut for dynamic classes: strings or iterables of classnames are automatically appended to the sugared classname!```pythonrender(['.foo', {'class': 'bar baz'}])# u'<div class="foo bar baz"></div>'render(['.foo', {'class': ['bar', 'baz']}])# u'<div class="foo bar baz"></div>'```### Installationpip install cottonmouth### Testingpython setup.py test### LicenseBSD Copyright 2013, Noah Seger[1]: https://github.com/weavejester/hiccup
Package: cottontaildb-client
Cottontail DB gRPC Python ClientA Cottontail DB gRPC client for Python. Built withCottontail DB Protoversion0.14.3. Comes with an interactive CLI for remote DB access.Versions are numbered such that the first two numbers correspond with those of the compatible Cottontail DB Proto.InstallationClone and install locally, or withpip install cottontaildb-client.UsageRunning the interactive CLI is as easy ascottontaildb-client [--port PORT] HOST.Example usage in scripts:fromcottontaildb_clientimportCottontailDBClient,Type,Literal,column_defwithCottontailDBClient('localhost',1865)asclient:# Create schemaclient.create_schema('example_schema')# Define entity columnscolumns=[column_def('id',Type.STRING,nullable=False),column_def('value',Type.INTEGER,nullable=True)]# Create entityclient.create_entity('example_schema','example_entity',columns)# Insert entryentry={'id':Literal(stringData='test_1'),'value':Literal(intData=1)}client.insert('example_schema','example_entity',entry)# Insert batchcolumns=['id','value']values=[[Literal(stringData='test_10'),Literal(intData=10)],[Literal(stringData='test_20'),Literal(intData=20)],[Literal(stringData='test_null'),Literal()]]client.insert_batch('example_schema','example_entity',columns,values)DevelopingTo update the gRPC client, regeneratecottontaildb_pb2.pyandcottontaildb_pb2_grpc.pyfrom the proto definitions
file in theCottontail DB Protorepository.The following is an approximate guide on how to do so from a terminal:# Get the latest version of the Cottontail DB proto (and download to cottontaildb_client directory)wgethttps://github.com/vitrivr/cottontaildb-proto/raw/master/src/main/protobuf/cottontail.proto-P./cottontaildb_client/# Install necessary python packagespipinstallgrpciogrpcio-tools# Generate the gRPC clientpython-mgrpc_tools.protoc-I.--python_out=.--grpc_python_out=../cottontaildb_client/cottontail.protoIt is important that the path to thecottontail.protofile reflects the location of the gRPC Python files, such that
the imports can be generated correctly.
Package: cottonwood
The Cottonwood Machine Learning FrameworkCottonwood is built to as flexible as possible, top to bottom.
It's designed to minimize the iteration time when running experiments
and testing ideas. It's meant to be tweaked. Fork it. Add to it. Customize it
to solve the problem at hand. For more of the thought behind it, read
the post "Why another framework?This code is always evolving. I recommend referencing a specific tag
whenever you use it in a project. Tags are labeled v1, v2, etc. and
the code attached to each one won't change.If you want to follow along with the construction process for Cottonwood,
you can get a step-by-step walkthrough in End-to-End Machine LearningCourse 312andCourse 313Try it outpython3-mpipinstall"cottonwood==8"--user
python3>>>importcottonwood.demoStart playingIf you'd like to experiment with ideas of your own, you'll want
to clone the repository to your local machine and install it from there.gitclonehttps://github.com/brohrer/cottonwood.git
python3-mpipinstall-ecottonwood--user--no-cachecdcottonwood
gitcheckoutv8ExamplesSee what Cottonwood looks like in action.
Feel free to use any of these as a template for a project of your own.
They're MIT licensed.Compress images of the surface of MarsRevision history
Package: cotyBot
cotyBot介绍捏一个替我完成重复性工作的机器人，就叫 Coty 吧。软件架构软件架构说明安装教程xxxxxxxxxxxx使用说明xxxxxxxxxxxx参与贡献Fork 本仓库新建 Feat_xxx 分支提交代码新建 Pull Request特技使用 Readme_XXX.md 来支持不同的语言，例如 Readme_en.md, Readme_zh.mdGitee 官方博客blog.gitee.com你可以https://gitee.com/explore这个地址来了解 Gitee 上的优秀开源项目GVP全称是 Gitee 最有价值开源项目，是综合评定出的优秀开源项目Gitee 官方提供的使用手册https://gitee.com/helpGitee 封面人物是一档用来展示 Gitee 会员风采的栏目https://gitee.com/gitee-stars/
Package: coub-api
Key Featuresresponse are fully-annotated withpydantictest work on snapshots from real http-answers (can easy inspect responses)own OAuth2-serverGetting startedInitiate Api clientimportosfromcoub_apiimportCoubApiapi=CoubApi()os.environ.get("coub_access_token")api.authenticate(access_token)# required for some authenticated requestsGet coub detailscoub=api.coubs.get_coub("1jf5v1")print(coub.id,coub.channel_id)Create Coubapi.coubs.init_upload())# {"permalink":"1jik0b","id":93927327}api.coubs.upload_video(93927327,"video.mp4")api.coubs.upload_audio(93927327,"audio.mp3"))api.coubs.finalize_upload(93927327,title="Awesome CAT",tags=["cat","animal"]))api.coubs.get_upload_status(93927327))# {"done": False, "percent_done": 0}# wait a minuteapi.coubs.get_upload_status(93927327))# {"done": True, "percent_done": 100}Get weekly hot coubsfromcoub_api.schemas.constantsimportPeriodapi.timeline.hot(period=Period.WEEKLY,order_by="likes_count")Get 5 page of random section with carsfromcoub_api.schemas.constantsimportSection,Categorycurrent_page=1max_page=5whilecurrent_page<=max_page:response=api.timeline.section(section=Section.RANDOM,category=Category.CARS,page=current_page)print(f"processing{current_page}of{max_page}")forcoubinresponse.coubs:print(coub.permalink)current_page+=1max_page=min(max_page,response.total_pages)OAuth2-ServerHow to use:Create YourOwnapplicationRun servercoub-oauth2-serverEnter Your Application Id and Secret and grant access the Coub server.Copy access token and start use it!
Package: coucal
coucalClimate,Observations andUueatherCALculator. A set of statistical analysis tools for meteorological and climate data.Quick Start>>>importcoucalWorkflow for developers/contributorsFor best experience create a new conda environment (e.g. DEVELOP) with Python 3.10:conda create -n DEVELOP -c conda-forge python=3.10
conda activate DEVELOPBefore pushing to GitHub, run the following commands:Update conda environment:make conda-env-updateInstall this package:pip install -e .Sync with the latesttemplate(optional):make template-updateRun quality assurance checks:make qaRun tests:make unit-testsBuild the documentation (seeSphinx tutorial):make docs-buildLicenseCopyright 2022, European Centre for Medium Range Weather Forecasts.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: couchbase-exporter
This Prometheus exporter runs configured queries against Couchbase and exports the results as Prometheus gauge metrics.Installation instructions:Install viapip:$ pip install prometheus-couchbase-exporterSee ``pip`` installation instructions at http://www.pip-installer.org/en/latest/installing.htmlUsage example:By default, it will bind to port 9119, query Couchbase on 127.0.0.1:8091 and run queries configured in an external moduleStatsMetrics.
You can change these defaults as required by passing in options:$ prometheus-couchbase-exporter -c <couchbase host:port> -p <port to listen>
Package: couchbase-stress-testing
This Couchbase Stress TEST by inseting data to specified bucketInstallation instructions:Install viapip3:$ pip3 install couchbase-stress-testUsage example:By default, query Couchbase on 127.0.0.1:8091 and run insert query.
You can change these defaults as required by passing in options:$ couchbase-stress-test -c <couchbase host:port> -u <couchbase username> -p <couchbase password> -m <number of thread to execute the calls asynchronously> - r <how many inserts to couchbase>Docker instructions:Environment variables
In order to configure the Couchbase stress test for use with other than default settings you can pass in the
following environment variables:Environment variablesNameDescriptionDefault valueCOUCHBASE_HOSTCouchbase host address127.0.0.1COUCHBASE_PORTCouchbase port address8091COUCHBASE_USERNAMECouchbase usernameCOUCHBASE_PASSWORDCouchbase passwordMAX_WORKERSNumber of thread to execute the calls asynchronously1RANGEHow many inserts to couchbase1000Running the containerdocker run -t -i -e COUCHBASE_HOST=127.0.0.1 -e COUCHBASE_PORT=8091 <image:tag>
Package: couchbed
CouchBedCouchBed is a Python library that allows you to log your code execution into CouchDB. It provides a simple and convenient way to record settings, messages, and logs into a CouchDB database.InstallationYou can install CouchBed using pip:pipinstallcouchbedUsageFirst, import theCouchBedclass from thecouchbedmodule:fromcouchbedimportCouchBedCreate an instance of theCouchBedclass, specifying the name of the CouchDB database as a parameter. By default, CouchBed uses the CouchDB URI provided by thePYTHON_COUCHBEDenvironment variable. Alternatively, you can pass the URI as a parameter when creating theCouchBedinstance. For each trial, you prepare a new book (CBBook).couch=CouchBed("__DATABASE_NAME__")book=couch.new_book()Recording SettingsYou can record settings by using thesetmethod or by directly assigning values to keys in theCBBookinstance.book.set({"a":1,"b":2})# orbook["key"]="value"Accessing SettingsYou can access the recorded settings by using theCBBookinstance as a dictionary.print(book["a"])Recording MessagesYou can record messages by calling theCBBookinstance as a function and passing the desired message as arguments.book("Hello",1,2,3)Recording LogsYou can record logs by using thelogmethod and passing a dictionary containing the log information.book.log({"epoch":1,"train_loss":0.1,"val_loss":0.15})Saving DataCouchBed automatically saves the data every 5 seconds if there are any changes. However, it's recommended to explicitly call thesavemethod at the end of your program to ensure all the data is saved. Otherwise, the last 5-second data may be lost.book.save()# orcouch.save()LicenseCouchBed is licensed under the MIT License.
Package: couchdb_download_token
CouchDB Download Token ServiceSimple web service that allows downloading CouchDB document attachments with a per-document download token.This project was created with the objetive of provide GET URLs for CouchDB document
attachments without having specify the couch username and password in the URL itself
or in the request headers.The method I found to do this worrying about permissions is assigning each document a
secretdownload_tokenfield to each document that will have to match when doing
requests to this service.The service needs to have admin user credentials so it can query all document’s
attachments and decide which clients give then. To do this you have to set aCOUCHDB_URLenvironment variable of formathttp://admin_user:password@server_domain:5984. By default it uses localhost
with no user credentials.Free software: GNU General Public License v3Documentation:https://couchdb-download-token.readthedocs.io.Example usage$ pip3 install couchdb_download_token
$ pip3 install gunicorn
$ gunicorn couchdb_download_token:api
[2016-07-12 23:33:28 -0300] [7880] [INFO] Starting gunicorn 19.6.0
[2016-07-12 23:33:28 -0300] [7880] [INFO] Listening at: http://127.0.0.1:8000 (7880)
[2016-07-12 23:33:28 -0300] [7880] [INFO] Using worker: sync
[2016-07-12 23:33:28 -0300] [7884] [INFO] Booting worker with pid: 7884
$ curl http://localhost:5984/my_database/my_document
{
    "_id": "my_document",
    "_rev": "4-763e041701ae3e55fd4af08dff93efc4",
    "info": "test document",
    "download_token": "123456",
    "_attachments": {
        "file.txt": {
            "content_type": "text/plain",
            "revpos": 2,
            "digest": "md5-U0f+Rrm7WPnsUGK3oD8t8g==",
            "length": 100,
            "stub": true
        }
    }
}
$ curl http://localhost:8000/my_database/my_document/file.txt?token=incorrect
...
< HTTP/1.1 403 Forbidden
< Server: gunicorn/19.6.0
...
$ curl http://localhost:8000/my_database/my_document/file.txt?token=123456
...
< HTTP/1.1 200 OK
< Server: gunicorn/19.6.0
< Date: Wed, 13 Jul 2016 03:02:07 GMT
< Connection: close
< Transfer-Encoding: chunked
< content-type: text/plain
File contentsCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2016-07-11)First release on PyPI.
Package: couchdbkit
AboutCouchdbkitprovides you a full featured and easy client to access and
manage CouchDB. It allows you to manage a CouchDBserver, databases, doc
managements and view access. All objects mostly reflect python objects for
convenience. Server and Databases objects could be used for example as easy
as using a dict.InstallationCouchdbkit requires Python 2.x superior to 2.6.To install couchdbkit using pip you must make sure you have a
recent version of distribute installed:$ curl -O http://python-distribute.org/distribute_setup.py
$ sudo python distribute_setup.py
$ easy_install pipTo install or upgrade to the latest released version of couchdbkit:$ pip install couchdbkitGetting startedThis tutorial exposes key features of this library mainly through code
examples. For in-depth description of the modules, you’ll want to read
theAPIdocumentation.Write your first CouchDB documentfrom couchdbkit import Server
# server object
server = Server()

# create database
db = server.get_or_create_db("greeting")

doc = {"mydoc": "test"}
db.save_doc(doc)import datetime
from couchdbkit import *

class Greeting(Document):
    author = StringProperty()
    content = StringProperty()
    date = DateTimeProperty()Store the submitted GreetingsHere is the code to save a greet onGreetingdatabase. We also see how to create a database:from couchdbkit import Server

# associate Greeting to the db
Greeting.set_db(db)

# create a new greet
greet = Greeting(
    author="Benoit",
    content="Welcome to couchdbkit world",
    date=datetime.datetime.utcnow()
)

# save it
greet.save()NoteYou can just use the db object to save a Schema:db.save(greet).Your documentgreetis now in thegreetingsdb. Each document
is saved with adoc_typefield that allow you to find easily each
kind of document with the views. By defaultdoc_typeis the name of
the class.Now that you saved your document, you can update it:greet.author = u"Benoit Chesneau"
greet.save()Here we updated the author name.Dynamic propertiesMmm ok, but isn’t CouchDB storing documents schema less? Do you want to
add a property ? Easy:greet.homepage = "http://www.e-engura.org"
greet.save()Now you have just added an homepage property to the document.Get all greetingsYou first have to create a view and save it in the db. We will call itgreeting/all. To do this we will use the loader system of couchdbkit
that allows you to send views to CouchDB.Let’s create a folder that contains the design doc, and then the folder
for the view. On unix:mkdir -p ~/Work/couchdbkit/example/_design/greeting/views/allIn this folder we edit a filemap.js:function(doc) {
  if (doc.doc_type == "Greeting")
    emit(doc._id, doc);
    }
}Here is a folder structure:/Work/couchdbkit/example/:

--_design/
---- greetings
------ viewHere is a  screenshot:A system will be provided to manage view creation and other things. As
some  noticed, this system works likecouchappand is fully
compatible.Then we use push function to send the design document to CouchDB:from couchdbkit.designer import push
push('/path/to/example/_design/greetings', db)The design doc is now in thegreetingsdatabase and you can get all
greets:greets = Greeting.view('greeting/all')
Package: couchdb-storage
Couchdb StorageUse couchdb to store storage meta dataFree software: GNU General Public License v3Documentation:https://couchdb-storage.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2023-06-19)First release on PyPI.
Package: couchdol
couchdolcouchdb with a simple (dict-like or list-like) interfaceTo install:pip install couchdolA basic couchDB persister.
Note that the couchDB persister is designed not to overwrite the value of a key if the key already exists.
You can subclass it and use update_one instead of insert_one if you want to be able to overwrite data.>>>fromcouchdolimportCouchDbPersister>>>s=CouchDbPersister()>>>for_idins:# deleting all docs in tmp...dels[_id]>>>k={'_id':'foo'}>>>v={'val':'bar'}>>>kins# see that key is not in store (and testing __contains__)False>>>len(s)0>>>s[k]=v>>>len(s)1>>>list(s)[{'_id':'foo'}]>>>s[k]{'val':'bar'}>>>s.get(k){'val':'bar'}>>>s.get({'not':'a key'},{'default':'val'})# testing s.get with default{'default':'val'}>>>list(s.values())[{'val':'bar'}]>>>kins# testing __contains__ againTrue>>>dels[k]>>>len(s)0>>>>>>s=CouchDbPersister(db_name='py2store',key_fields=('name',),data_fields=('yob','proj','bdfl'))>>>for_idins:# deleting all docs in tmp...dels[_id]>>>s[{'name':'guido'}]={'yob':1956,'proj':'python','bdfl':False}>>>s[{'name':'vitalik'}]={'yob':1994,'proj':'ethereum','bdfl':True}>>>forkey,valins.items():...print(f"{key}:{val}"){'name':'guido'}:{'yob':1956,'proj':'python','bdfl':False}{'name':'vitalik'}:{'yob':1994,'proj':'ethereum','bdfl':True}CouchDbStore using tuple keys.>>>fromcouchdolimportCouchDbTupleKeyStore>>>s=CouchDbTupleKeyStore(key_fields=('_id','user'))>>>k=(1234,'user')>>>v={'name':'bob','age':42}>>>ifkins:# deleting all docs in tmp...dels[k]>>>assert(kins)==False# see that key is not in store (and testing __contains__)>>>orig_length=len(s)>>>s[k]=v>>>assertlen(s)==orig_length+1>>>assertkinlist(s)>>>asserts[k]==v>>>asserts.get(k)==v>>>assertvinlist(s.values())>>>assert(kins)==True# testing __contains__ again>>>dels[k]>>>assertlen(s)==orig_length
Package: couchpy
CouchPyCouchPy is programmatic interface in python for CouchDB database management
systems. Apart from providing a programmatic access, it also provides data
modelling, querying, creating views, and MVCS features. If you are new to
NoSQL way of building database, you might have to forego some of the ideas
learnt from relational database systems.
Visitmicrositefor more information.QuicklinksREADMECHANGELOGTrack couchpy developmentIf you have any queries, suggestionsdiscuss with us
Package: couch-remote
⚠️ Current status of this projectRunremoteto serveCommands are not supported yet.Supported Operating Systems:Linux (Xorg) - by pynputWindows - by pynputNot yet supported Operating Systems:Linux (Wayland)macos - requires testingCouch RemoteA utility, available atPyPI, which serves a remote keyboard to control a computer.UsageTo install:pip install couch-remote(in a venv or globally)Now, yourremoteshould be available.Optionally,remote scaffold-config, creates a basic settings file, thenremote global settings.pycopies it to aglobal configuration directory.Finally,remote controlserves an instance at0.0.0.0:4444. This is theonlycommand, you're going to need from now on.Settingsfrompynput.keyboardimportKeyfromremote.modelsimportButtonbuttons={'play_pause_media':Button(key=Key.media_play_pause,label='⏯️'),'esc':Button(key=Key.esc,label='Esc'),'caps':Button(key=Key.caps_lock,label='Caps Lock'),'space':Button(key=Key.space,label='Space'),}port=4444Q: Do jakiego formatu zapisują się i wczytują configi w settingsach?Install a global settings fileremote global settings.pyWhen ran, stores settings at a default path:~/.config/couch-remote/settings.pyThe app will default to this path when not specified.