Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Python Rocksdb
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
Python Rocksdb
Commits
2c8ed278
Unverified
Commit
2c8ed278
authored
4 years ago
by
Andrey Martyanov
Browse files
Options
Downloads
Patches
Plain Diff
Update README with simplified installation procedure
parent
b183abda
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.rst
+2
-18
2 additions, 18 deletions
README.rst
with
2 additions
and
18 deletions
README.rst
+
2
−
18
View file @
2c8ed278
...
@@ -7,24 +7,8 @@ Python bindings for RocksDB. See http://rocksdb.readthedocs.io for a more compre
...
@@ -7,24 +7,8 @@ Python bindings for RocksDB. See http://rocksdb.readthedocs.io for a more compre
Quick install
Quick install
-------------
-------------
Quick install for debian/ubuntu like linux distributions.
.. code-block:: bash
.. code-block:: bash
$ apt-get install build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev liblz4-dev
$ git clone https://github.com/facebook/rocksdb.git
$ cd rocksdb
$ mkdir build && cd build
$ cmake ..
$ make
$ cd ..
$ export CPLUS_INCLUDE_PATH=${CPLUS_INCLUDE_PATH}${CPLUS_INCLUDE_PATH:+:}`pwd`/include/
$ export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}${LD_LIBRARY_PATH:+:}`pwd`/build/
$ export LIBRARY_PATH=${LIBRARY_PATH}${LIBRARY_PATH:+:}`pwd`/build/
$ apt-get install python-dev
$ python3 -m venv .venv
$ source .venv/bin/activate
$ pip install rocksdb
$ pip install rocksdb
...
@@ -34,9 +18,9 @@ Quick usage guide
...
@@ -34,9 +18,9 @@ Quick usage guide
.. code-block:: python
.. code-block:: python
>>> import rocksdb
>>> import rocksdb
>>> db = rocksdb.DB(
"
test.db
"
, rocksdb.Options(create_if_missing=True))
>>> db = rocksdb.DB(
'
test.db
'
, rocksdb.Options(create_if_missing=True))
>>> db.put(b'a', b'data')
>>> db.put(b'a', b'data')
>>> print
db.get(b'a')
>>> print
(
db.get(b'a')
)
b'data'
b'data'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment