MCPcopy Index your code
hub / github.com/ActiveState/code

github.com/ActiveState/code @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
34,022 symbols 114,311 edges 4,685 files 10,102 documented · 30% updated 4y ago★ 1,969225 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ActiveState Code Recipes

Welcome to the ActiveState Code recipes repo! We have migrated all of the great content from code.activestate.com to its new forever-home here at GitHub. This makes it easier for everyone to submit new recipes, contribute code and integrate all the great information into their own projects.

The vast majority of code that existed on the code.activestate.com website has a home here, however if you do come across any recipe that is missing, or conversely, is totally outdated and no longer relevant please submit an issue.

What is this repo for?

This repo exists to contribute useful snippets, utility functions, and other interesting tidbits in any language that may be helpful to other developers.

Is there a master list of all the recipes?

You can find the master index of all recipes over at the wiki.

Coming Soon: Search Functionality!

How could I submit a new recipe?

  1. Fork this repo.
  2. Create your new recipe in the correct language subfolder (create a new folder if it doesn't already exist).
  3. Make sure you have included a README as well as your source file.
  4. Submit a PR.

Coming Soon: Submit recipes hosted in your own repo linked back from here!

How do I submit a change or revision to a recipe?

Same as above, fork the repo and submit a PR with your change.

What license is this code released under?

By default, all newly submitted code is licensed under the MIT license. If your recipe is being released under a different license, please make sure to include a LICENSE file inside your recipe directory.

All legacy recipes retain their original license. Please see the LICENSE file inside each recipe folder for details.

How else can I contribute?

Recipes don't always have to be code - great documentation, tutorials, general tips and even general improvements to our wiki are greatly appreciated.

Core symbols most depended-on inside this repo

range
called by 3208
recipes/Python/577256_Improved_range_function/recipe-577256.py
str
called by 2985
recipes/Python/222109_radixstrNR__reverse_functiintSR/recipe-222109.py
print
called by 2903
recipes/JavaScript/578120_Komodo_JS_Macro_Execute/recipe-578120.js
join
called by 1269
recipes/Python/576576_Thread_Pool/recipe-576576.py
sleep
called by 861
recipes/Python/551780_Win_Services_helper/recipe-551780.py
split
called by 851
recipes/Python/577978_Text_Model/recipe-577978.py
open
called by 645
recipes/Python/576591_Simple_shelve_Linux_file/recipe-576591.py
replace
called by 619
recipes/Python/576532_Adaptive_Replacement_Cache/recipe-576532.py

Shape

Method 19,231
Function 9,959
Class 4,822
Route 10

Languages

Python99%
TypeScript1%
Java1%

Modules by API surface

recipes/Python/578138_gprof2dotpy/recipe-578138.py235 symbols
recipes/Python/415345_write_sql_via_python/recipe-415345.py216 symbols
recipes/Python/577825_Rudimentary_Database_Engine/recipe-577825.py189 symbols
recipes/Python/580636_Space_Assault/recipe-580636.py186 symbols
recipes/Python/546530_Size_of_Python_objects_revised/recipe-546530.py155 symbols
recipes/Python/577635_Directory_Pruner_3/recipe-577635.py151 symbols
recipes/Python/577633_Directory_Pruner_2/recipe-577633.py151 symbols
recipes/Python/577638_File_Share_Messenger_25/recipe-577638.py135 symbols
recipes/Python/580746_Tkinter_treeview_like_table_or_multicolumn/recipe-580746.py129 symbols
recipes/Python/580811_Uno_TextBased/recipe-580811.py126 symbols
recipes/Python/498270_Yielding_out_nested_routines_metaclass/recipe-498270.py119 symbols
recipes/Python/578154_Directory_Pruner_4/recipe-578154.py113 symbols

Datastores touched

(mysql)Database · 1 repos
airsDatabase · 1 repos
gryfcard_mrbDatabase · 1 repos

For agents

$ claude mcp add code \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact