Skip to content

Questions about dependencies #232

Closed
@jbergknoff-rival

Description

@jbergknoff-rival

Hi, we're considering pulling in this SDK in several Python projects. Because we build those projects in pretty bare containers, the compiled dependencies here (mmh3, and cryptography from requests[security]) mean that we need to install some additional OS packages at build time. That's not a showstopper, but some questions came up:

  • Is requests[security] needed? From https://github.com/psf/requests/pull/4825/files, it seems like it's probably not needed anymore, since fixes have been introduced in the standard library in Python 2.7.9 and 3.4.3.

  • There is already fallback code in case mmh3 isn't installed:

    try:
    import mmh3
    except ImportError:
    from .lib import pymmh3 as mmh3
    , but the mmh3 requirement doesn't seem to be optional. Could it be made optional?

  • Do you have any details on the performance penalty of using the pure-Python Murmur3 implementation, as compared to the compiled version? I suspect that, in our use case (AWS Lambda, process per request), it may not be an issue.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions