Skip to main content

The official Python driver for the Curiosity Search engine (https://curiosity.ai/).

The Python driver makes it easy to:

  • upload files, add entities and link them
  • create users, teams and manage access
  • run queries on the graph

Installation

Run pip install curiosity to install the Python driver from PyPI.

Getting Started

Replace the server, and connector_name in the code sample below.

  • server : The full url to your Curiosity system. The used port is printed in the beginning of the log output of the Curiosity instance. The url has to end with /api.
  • lib_token : You have to create a library token first, in order to use this library with your Curiosity instance. See the python documentation page on how to create a library token.
  • connector_name : A descriptive name for your Connector. This is how the connector shows up in the Manage Data overview.

Now, you can use the methods on the graph object to interact with the Curiosty system. Check out the API documentation to see all the possible methods.

from curiosity import Graph

def main():
    # The url to you curiosity instance
    server = "http://localhost:8080/api"

    # The library token you just created
    lib_token = "eqJHbGci..."

    # A descriptive name for your Connector. This is how the connector shows up in the Manage Data overview.
    connector_name = "Python data connector"

    with Graph.connect(server, lib_token, connector_name) as graph:

        # The graph objects provides plenty of methods to interact with your 
        # Curiosity instance. A file can be uploaded like this:
        fullpath = "./sample.pdf"
        filename = "sample.pdf"
        source = "Samples"

        graph.upload_file_by_path(fullpath, filename, source)

if __name__ == '__main__':
    main()

API documentation

Coming soon ...

Example projects

Coming soon ...

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

curiosity-15057-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file curiosity-15057-py3-none-any.whl.

File metadata

  • Download URL: curiosity-15057-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.6

File hashes

Hashes for curiosity-15057-py3-none-any.whl
Algorithm Hash digest
SHA256 6e02edda24c3ffe86ae8575c5c232f73342b11b303e4f3a7204f08d49cc6b1eb
MD5 314c04b868f1bf95e0aa8baf5ea9a3e9
BLAKE2b-256 76dfb2c620ca685e759c9cf1512c167da0d37ede8daff15216fe92eec3b88faf

See more details on using hashes here.

Release history Release notifications | RSS feed

67445

1 file

65767

1 file

54593

1 file

44983

1 file

36441

1 file

23850

1 file

15839

1 file

15575

1 file

15329

1 file

15311

1 file

15299

1 file

15269

1 file

15093

1 file

15073

1 file

This release

15057 This release

1 file

14883

1 file

14882

1 file

14881

1 file

14876

1 file

14875

1 file

14874

1 file

14873

1 file

14872

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page