#๐Ÿ”’ How to properly install leveldb library in python?

40 messages ยท Page 1 of 1 (latest)

pine fernBOT
#

@brave moon

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

half sable
#

properly, as opposed to...?

#

did pip install leveldb go wrong?

#

that library looks poorly maintained, just a note

#

last update was 5 years ago

#

are you really sure you want to use something like that?

clear wigeon
#

Why not sqlite?

#

Its built-in

#

as mentioned, its old and unmaintained. Why do you need leveldb?

half sable
#

(sqlite is not a drop-in replacement for a key-value store which leveldb is)

#

I'm assuming that OP needs to connect to an existing LevelDB

#

why not use Valkey then?

#

do you want a relational database or a key-value store?

#

if you're starting a new project, I would recommend going with Valkey then

#

.db doesn't say much

#

what format are these in?

#

wait, what?

clear wigeon
#

hah I knew it!

half sable
#

I thought you said you wanted a key-value store

#

but sqlite is not a key-value store, it's a relational database

#

two entirely different categories of databases

#

oh, I see

clear wigeon
#

but you want to move these to... faster databases?

half sable
#

to what end?

#

you can use the redis library with a Valkey server, or a Redis server of course, but Valkey is the open-source fork of Redis

clear wigeon
#

Settings are just one-off read and only needs to be written once in awhile. Not all the time. Why do you need speed for settings databases to key-value database?

half sable
#

the project itself said it didn't know how to compile itself on Windows

clear wigeon
#

Just use valkey. Looks good

half sable
#

I am wondering if Valkey will get its own Python library as Redis and Valkey start diverging in terms of features

pine fernBOT
#

Python client for Valkey forked from redis-py

Released on <t:1726055645:D>.

half sable
#

oh, there's already one!

#

good to know

#

last time I checked it didn't exist yet

clear wigeon
#

First real release is in 13/08/2024. So its relatively new

half sable
#

so @brave moon if you use a Valkey server, use the valkey library to connect to it

#

and not redis which I mentioned earlier

pine fernBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.