Giter Site home page Giter Site logo

phenobarbital / asyncdb Goto Github PK

View Code? Open in Web Editor NEW
31.0 5.0 4.0 277.5 MB

Collection of Asynchronous (Asyncio-based) generic Database connectors

License: Other

Python 98.22% Makefile 0.11% Cython 1.66%
asyncio asyncio-redis asyncpg cassandra duckdb hazelcast mysql rethinkdb aioinflux asyncmy

asyncdb's Introduction

Metrics Habits

Coding Habits:

Calendar

Latest Tweets:

Twitter

asyncdb's People

Contributors

dependabot[bot] avatar ecrespo avatar guilleg25 avatar jelitox avatar phenobarbital avatar pyup-bot avatar snyk-bot avatar vijoin avatar willicab 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  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

asyncdb's Issues

Windows build failing

Hello,

is this one supported on Windows by any chance? Build is failing.

python -m pip install asyncdb
Collecting asyncdb
  Using cached asyncdb-2.1.40.tar.gz (228 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error

  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [21 lines of output]
      Traceback (most recent call last):
        File "C:\Users\user\Desktop\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 351, in <module>
          main()
        File "C:\Users\user\Desktop\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 333, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "C:\Users\user\Desktop\Programs\Python\Python310\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "C:\Users\user\AppData\Local\Temp\pip-build-env-ik_estk3\overlay\Lib\site-packages\setuptools\build_meta.py", line 338, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "C:\Users\user\AppData\Local\Temp\pip-build-env-ik_estk3\overlay\Lib\site-packages\setuptools\build_meta.py", line 320, in _get_build_requires
          self.run_setup()
        File "C:\Users\user\AppData\Local\Temp\pip-build-env-ik_estk3\overlay\Lib\site-packages\setuptools\build_meta.py", line 335, in run_setup
          exec(code, locals())
        File "<string>", line 270, in <module>
        File "C:\Users\user\AppData\Local\Temp\pip-build-env-ik_estk3\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 970, in cythonize
          module_list, module_metadata = create_extension_list(
        File "C:\Users\user\AppData\Local\Temp\pip-build-env-ik_estk3\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 816, in create_extension_list
          for file in nonempty(sorted(extended_iglob(filepattern)), "'%s' doesn't match any files" % filepattern):
        File "C:\Users\user\AppData\Local\Temp\pip-build-env-ik_estk3\overlay\Lib\site-packages\Cython\Build\Dependencies.py", line 114, in nonempty
          raise ValueError(error_msg)
      ValueError: 'asyncdb/exceptions/exceptions.pyx' doesn't match any files
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

It's a Windows 10 with Python 3.10

Linting errors detected with "make lint"

After running make lint I detected the following linting errors:

pylint: Command line or configuration file:1: UserWarning: 'BaseException' is not a proper value for the 'overgeneral-exceptions' option. Use fully qualified name (maybe 'builtins.BaseException' ?) instead. This will cease to be checked at runtime in 3.1.0.
pylint: Command line or configuration file:1: UserWarning: 'Exception' is not a proper value for the 'overgeneral-exceptions' option. Use fully qualified name (maybe 'builtins.Exception' ?) instead. This will cease to be checked at runtime in 3.1.0.
************* Module asyncdb.interfaces
asyncdb/interfaces.py:625:11: R6103: Use 'if (row := await self._cursor.fetchone()) is not None:' instead (consider-using-assignment-expr)
asyncdb/interfaces.py:636:11: R6103: Use 'if (row := self._cursor.fetchone()) is not None:' instead (consider-using-assignment-expr)
asyncdb/interfaces.py:722:11: R6103: Use 'if (data := await self._cursor.fetchrow()) is not None:' instead (consider-using-assignment-expr)
asyncdb/interfaces.py:872:21: R1714: Consider merging these comparisons with 'in' by using 'value in ('!null', '!NULL')'. Use a set instead if elements are hashable. (consider-using-in)
asyncdb/interfaces.py:888:24: W0141: Used builtin function 'map'. Using a list comprehension can be clearer. (bad-builtin)
asyncdb/interfaces.py:894:24: W0141: Used builtin function 'map'. Using a list comprehension can be clearer. (bad-builtin)
asyncdb/interfaces.py:855:4: R0912: Too many branches (14/12) (too-many-branches)
asyncdb/interfaces.py:886:49: W6001: 'typing.List' is deprecated, use 'list' instead (deprecated-typing-alias)

support asyncio-based cassandra driver

Now, cassandra driver uses asyncore, its implementation is too old. And I want to use cassandra in pure asynchronous (asyncio-based) code in Python3.11. I want to know whether it will be soon in the next release.

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.