{"id":27426,"library":"stubs","title":"stubs","description":"Tools for setting up stubs and mocks in Python tests. Version 1.0.0, currently at initial release with no defined release cadence.","status":"active","version":"1.0.0","language":"python","source_language":"en","source_url":"http://github.com/zestyping/stubs","tags":["testing","mocks","stubs"],"install":[{"cmd":"pip install stubs","lang":"bash","label":"Latest stable version"}],"dependencies":[],"imports":[{"wrong":"from stubs import Stub","symbol":"stub","correct":"from stubs import stub"},{"symbol":"expect","correct":"from stubs import expect"},{"symbol":"matchers","correct":"from stubs import matchers"}],"quickstart":{"code":"from stubs import Stub\nstub = Stub()\nstub.return_value('func', 42)\nresult = stub.func()\nprint(result)  # 42","lang":"python","description":"Create a stub and set a return value for a method."},"warnings":[{"fix":"Use 'from stubs import Stub' instead of 'import stubs'.","message":"No known breaking changes as library is at version 1.0.0. However, the API is minimal; ensure you use the correct import path.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'1.0.0':13 'cadenc':22 'current':14 'defin':20 'initi':16 'mock':8,24 'python':10 'releas':17,21 'set':4 'stub':1,6,25 'test':11,23 'tool':2 'version':12","created_at":"2026-05-01T17:46:11.949216+00:00","updated_at":"2026-05-01T17:46:11.949216+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"http://github.com/zestyping/stubs","docs":null,"changelog":null,"pypi":"https://pypi.org/project/stubs/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-07-03","last_verified":"2026-07-03","next_check":"2026-08-02","install_tag":null}}