Skip to main content
Help us improve Python packaging – donate today!

N4 is a Cypher runner and interactive console for Neo4j.

Project Description

N4 is a Cypher runner and interactive console for Neo4j.

N4 Cypher console for Neo4j

Installation

To install the latest stable version, simply run:

pip install n4

For a specific version, such as an older version or beta, use:

pip install n4==x.y.z

For the latest, bleeding edge code (possibly unstable), use:

pip install git+https://github.com/technige/n4.git

This installs an n4 executable onto your path along with a supplementary auth management tool, n4auth.

Executable: n4

Synopsis

n4 [OPTIONS] [STATEMENT]...

Options

  • -U, --uri TEXT Set the connection URI.
  • -u, --user TEXT Set the user.
  • -p, --password TEXT Set the password.
  • -i, --insecure Use unencrypted communication (no TLS).
  • -v, --verbose Show low level communication detail.
  • --help Show this message and exit.

Description

If command line arguments are provided, these are executed in order as statements. If no arguments are provided, an interactive console is presented.

Statements entered at the interactive prompt or as arguments can be regular Cypher, transaction control keywords or slash commands. Multiple Cypher statements can be entered on the same line separated by semicolons. These will be executed within a single transaction.

For a handy Cypher reference, see the Cypher reference card.

Transactions can be managed interactively. To do this, use the transaction control keywords BEGIN, COMMIT and ROLLBACK.

Slash commands provide access to supplementary functionality.

  • // to enter multiline mode (press [Esc][Enter] to run)
  • /? for help
  • /x to exit

Playback commands

  • /r FILE load and run a Cypher file in a read transaction
  • /w FILE load and run a Cypher file in a write transaction

Formatting commands

  • /csv format output as comma-separated values
  • /table format output in a table
  • /tsv format output as tab-separated values

Information commands

  • /config show Neo4j server configuration
  • /kernel show Neo4j kernel information

Executable: n4auth

Synopsis

n4auth add [OPTIONS] AUTH_FILE USER_NAME
n4auth list [OPTIONS] AUTH_FILE
n4auth remove [OPTIONS] AUTH_FILE USER_NAME
n4auth update [OPTIONS] AUTH_FILE USER_NAME

Options

  • --password TEXT Pass the password instead of prompting for it.
  • --help Show this message and exit.

Description

Note that unlike n4, n4auth operates directly on the server file system and not remotely.

TODO

Release history Release notifications

History Node

1.4.0

History Node

1.3.0

History Node

1.2.2

This version
History Node

1.2.1

History Node

1.2.0

History Node

1.1.0

History Node

1.1.0b1

History Node

1.0.0

History Node

1.0.0rc2

History Node

1.0.0rc1

History Node

1.0.0b2

History Node

1.0.0b1

History Node

1.0.0a10

History Node

1.0.0a9

History Node

1.0.0a8

History Node

1.0.0a7

History Node

1.0.0a6

History Node

1.0.0a5

History Node

1.0.0a4

History Node

1.0.0a3

History Node

1.0.0a2

History Node

1.0.0a1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
n4-1.2.1-py2.py3-none-any.whl (20.7 kB) Copy SHA256 hash SHA256 Wheel 2.7 Jul 17, 2017
n4-1.2.1.tar.gz (15.7 kB) Copy SHA256 hash SHA256 Source None Jul 17, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page