Giter Site home page Giter Site logo

aimhubio / aimrocks Goto Github PK

View Code? Open in Web Editor NEW
25.0 25.0 7.0 1.43 MB

๐ŸŽฏ aimrocks ๐ŸŽธ โ€” python & cython bindings for RocksDB. Batteries included! ๐Ÿ”‹

License: Apache License 2.0

Shell 1.70% Python 35.25% C++ 6.05% Cython 56.63% Dockerfile 0.37%
embedded-database rocksdb

aimrocks's People

Contributors

alberttorosyan avatar hadim avatar judahrand avatar mahnerak avatar mihran113 avatar raphaelauv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

aimrocks's Issues

bump rocksdb version

I would like to try rocksdb with IOUring ( async operations ) , did you not bump the version of rocksdb for a reason , or it's just not necessary for your current usage ? thanks

Trouble installing on apple silicon M1

Problem

When trying to install aim (which depends on aimrocks) with pip on MacOS with M1 chip I am getting this error:
ERROR: Could not find a version that satisfies the requirement aimrocks==0.0.10 (from aim) (from versions: none) ERROR: No matching distribution found for aimrocks==0.0.10

I suspect this happens because there are no pre-built binaries for M1 chip. To fix this issue please publish pre-built binaries for M1 arm architecture.
To save you time and resources I'm providing pre-built binaries on the specified environment from master branch using command python setup.py sdist bdist_wheel , if you need something from my side to fix this issue please feel free to contact me.

Download M1 binaries

Environment info:

OS: macOS 12.1 21C52 arm64
Host: MacBookPro18,3
Kernel: 21.2.0
DE: Aqua
CPU: Apple M1 Pro
GPU: Apple M1 Pro
Python: 3.10.x or 3.9.x
Pip: 21.2.4

Reproducing code example:

pip install aim==3.3.5
or
pip install aimrocks==0.0.10

setup.py is missing a license

setup.py file is missing classifiers field with license declaration, you already have a line like that in aim library:

classifiers=[
        'License :: OSI Approved :: Apache Software License',
    ]

this is really useful for automatic license checkers to figure out what dependency can be used in a commercial project

Conda package setup.py patch

The conda-forge package is now available at https://github.com/conda-forge/aimrocks-feedstock

Here is a patch against setup.py I am using in order to be able to build the package on the conda-forge infrastructure: https://github.com/conda-forge/aimrocks-feedstock/blob/main/recipe/setup_rocksdb.patch

That would be nice if you could integrate it here so we can remove the patch from the feedstock in the future.

It's not urgent and neither blocking for now.

ping @gorarakelyan

[BUG] close() -> SIGSEGV

ubuntu 20.04 , python 3.8

import aimrocks

db_options = dict(
    create_if_missing=True,
    paranoid_checks=False,
)

db_path = '/tmp/example_db2'
rocks_db = aimrocks.DB(db_path, aimrocks.Options(**db_options), read_only=False)

batch = aimrocks.WriteBatch()
batch.put(b'key_1', b'value_1')
batch.put(b'key_1', b'value_1')
...

rocks_db.write(batch)
rocks_db.close() # throw the error

rocks_db = aimrocks.DB(db_path, aimrocks.Options(**db_options), read_only=True)
rocks_db.get(b"key_1")
if __name__ == '__main__':
    pass

give

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

Add source distribution (tar.gz)

Would it be possible to add a source distribution (tarball/tar.gz) here on github or on pypi? I would like to add this package to the conda-forge in order to make this package accessible to a wider user base.

Python 3.12 wheels

Python 3.12 has been out for quite sometime now. Could you please provide wheels so that aim is easily installable on Python 3.12?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.