To override these settings, import ttings and override values as necessary before creating the client.įor example, to disable certificate validation in a dev environment: import py42.sdk import ttings as settings import logging settings. Logging.Logger with StreamHandler sending to sys.stderrĬontrols how many items are retrieved per request for methods that loops over several "pages" of items in order to collect them all. See the Requests library's documentation on proxies for more info. Possible values: True, False, or a path to a CA bundle to use.ĭictionary mapping protocol or protocol and hostname to the URL of the proxy. NameĬontrols whether the SDK verifies the server's certificate. There are a few default settings that affect the behavior of the client. You should see something like the following: Configuration Or alternatively > sdk = _jwt_provider("", jwt_provider_function) from_local_account ( "", "john.doe", "password" ) Import a couple essentials > import py42.sdk > import py42.util as util Here's a simple example to verify the installation and your server/account. You will likely need administrative privileges for this. Run the setup.py script to install the py42 package and its dependencies on your system. Code42 Server 6.8.x+ or cloud environment (e.g.It is designed to be used for developing your own tools for working with Code42 data while avoiding the overhead Py42 is a Python wrapper around the Code42 REST APIs that also provides several other useful utility methods.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |