/TheBrain-API-Playground

Primary LanguageJupyter NotebookMIT LicenseMIT

The Brain API Playground and XKCD your Brain

TheBrain API Playground

This Jupyter Notebook, BrainAPI.ipynb, contains a set of cells that interact with TheBrain API. The first cell imports necessary modules and reads in API keys and target brain information from text files. The following cells define functions to interact with the API, including listing brains, scanning brains, listing types and tags, searching for thoughts, and retrieving named items. Each of these functions is demonstrated in a separate cell.

You'll want to create a private file in the same directory calle APIKey.txt containing just your API key on one line. In the same way, you may prefer creating a file called target.txt in the same directory that contains your Brain's ID.

Note: This Version of the playground supports some writing calls, but you should look at XKCD to see them in action.

Version

1.2

Version History

  • 1.2 - Added some write options, but no examples, yet.
  • 1.1 - Added support for notes and an NLTK Example
  • 1.0 - Initial Release

Date

November 5, 2023

License

MIT

XKCD your Brain

This Jupyter Notebook, XKCD.ipynb, contains a set of cells that interact with TheBrain API to add xkcd comics to your brain.

You'll want to create a private file in the same directory calle APIKey.txt containing just your API key on one line. In the same way, you may prefer creating a file called target.txt in the same directory that contains your Brain's ID.

Create a single thought called xkcd. Set your comic range on Cell 5. Run all steps. It might be a good idea to do small batches.

Version

1.0

Version History

    • 1.0 - Initial Release

Date

November 5, 2023

License

MIT