
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
An asynchronous client library for CouchDB 2.0 based on asyncio using aiohttp
pip install aiocouch
The following code retrieves and prints the list of incredients
of the apple_pie recipe
.
The incredients
are stored as a list in the apple_pie aiocouch.document.Document
,
which is part of the recipe
aiocouch.database.Database
. We use the context manager
aiocouch.CouchDB
to create a new session.
from aiocouch import CouchDB
async with CouchDB(
"http://localhost:5984", user="admin", password="admin"
) as couchdb:
db = await couchdb["recipes"]
doc = await db["apple_pie"]
print(doc["incredients"])
We can also create new recipes, for instance for some delicious cookies.
new_doc = await db.create(
"cookies", data={"title": "Granny's cookies", "rating": "β
β
β
β
β
"}
)
await new_doc.save()
For further details please refer to the documentation, which is available here on readthedocs.org.
pip install --editable '.[examples]'
python examples/getting_started.py
pip install --editable '.[tests]'
COUCHDB_HOST
, COUCHDB_USER
, COUCHDB_PASS
)pytest --cov=aiocouch
pip install '.[docs]'
docs
directory: cd docs
make html
FAQs
π An asynchronous client library for CouchDB 2.x and 3.x
We found that aiocouch demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptalβs GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.