neo4j-driver-python-skill
OfficialConnect to Neo4j safely with the Python driver.
Software Engineering#asyncio#neo4j#result handling#managed transactions#python driver#execute_query#data type mapping
Authorneo4j-contrib
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It helps you build reliable Python application code that connects to Neo4j and correctly manages driver sessions, transactions, async execution, and result handling.
Core Features & Use Cases
- Driver lifecycle & connection setup: Create and reuse a single
GraphDatabase.driver(orAsyncGraphDatabase) instance, includingverify_connectivity, correct URI schemes, and supported authentication methods. - Correct query execution patterns: Use
execute_queryas the safe default, choose between managed transactions (execute_read/execute_write) and implicit transactions (session.run), and understand retry and streaming/eagerness behavior. - Robust results, types, and error handling: Access records safely, handle
Resultlifetimes and JSON serialization pitfalls, map Python/Cypher data types (including temporal and graph objects), and catch Neo4j exceptions likeConstraintErrorandTransientError. - Practical performance guardrails: Avoid common mistakes that cause session leaks, connection pool exhaustion, unnecessary round-trips (by always specifying
database_/database=), and unsafe UNWIND batching inputs.
Quick Start
Use the neo4j-driver-python-skill to write a Python service that initializes the Neo4j driver once, runs read/write work using execute_query and managed transactions, and returns JSON-safe scalars from query results.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: neo4j-driver-python-skill Download link: https://github.com/neo4j-contrib/neo4j-skills/archive/main.zip#neo4j-driver-python-skill Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.