How to use searchcode servers API using Python

An example Python program for calling the all of the searchcode server API methods can be found inside the searchcode server source code repository using both SHA1 signed requests and SHA512 signed requests. These tests are part of the searchcode server test suite and will always be in sync with the current version of searchcode server. As such it is safe to assume that they will always reflect the current state of the searchcode server API.

Keep in mind that both of the above examples modify the searchcode server database directly in order to keep the tests automated. This portion should be removed from your own install.

To use them you will need admin access to your searchcode server install to generate a valid public/private keypair.

To see what options are valid for calling the API be sure to check the searchcode server documentation either on this site or in your searchcode server install.

Productivity through code search.

Try searchcode server for Free