
Research
/Security News
Popular Tinycolor npm Package Compromised in Supply Chain Attack Affecting 40+ Packages
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
A Python client for Cognica database server.
$ pip install cognica
The current version is fully functional and stable for the production environment. However, the API is still subject to change and may break backward compatibility in the next release.
import cognica
# Establish connection to a local database server.
channel = cognica.Channel("localhost", 10080)
# List collections.
db = cognica.DocumentDB(channel)
collections = db.list_collections()
for collection in collections:
print(collection)
# Find a specific document in the Wikipedia collection.
collection = db.find_collection("Wikipedia")
df = collection.find({
"page_id": 42
}, to_pandas=True)
print(df)
import cognica
# Establish connection to a local database server.
channel = cognica.Channel("localhost", 10080)
# Login to the database.
ws = cognica.Workspaces(channel, "user_id", "password")
# List workspaces.
workspaces = ws.list_workspaces()
for workspace in workspaces:
print(workspace)
# Open the workspace and list the collections.
workspace = ws.find_workspace("test")
db = cognica.DocumentDB(workspace)
collections = db.list_collections()
for collection in collections:
print(collection)
# Find a specific document in the Wikipedia collection.
collection = db.find_collection("Wikipedia")
df = collection.find({
"page_id": 42
}, to_pandas=True)
print(df)
FAQs
Python client for Cognica database
We found that cognica 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.
Research
/Security News
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
Security News
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.