{"repo":"dfinity/pocketic-py","free":true,"listed":false,"github":"https://github.com/dfinity/pocketic-py","clone":"git clone https://github.com/dfinity/pocketic-py.git","description":"PocketIC Python: A Canister Testing Library for the Internet Computer","language":"Python","stars":14,"topics":["canister","canisters","dfinity","icp","internet-computer","internet-computer-protocol","python","smart-contract","smart-contracts","testing"],"license":null,"category":"blockchain-web3","readme_excerpt":"PocketIC Python: A Canister Testing Library PocketIC is a local canister testing solution for the Internet Computer. This testing library works together with the PocketIC server , allowing you to interact with your local IC instances and the canisters thereon. With PocketIC Python, you can test your canisters with just a few lines of code, either by interacting with an IC instance: ... or even directly with a canister object: Getting Started Quickstart Download the latest PocketIC server from the PocketIC repo that is compatible with the library version you're using. Leave the binary in your current working directory, or specify the path to the binary by setting the POCKET IC BIN environment variable before running your tests. Run pip3 install pocket-ic in your (virtual) environment to get the Python library. Use from pocket ic import PocketIC in your Python code and start testing! Examples To see some working code, see the examples/ folder, or check out the how to use this library guide. To run an example, clone this repo and run python3 examples/counter canister/counter canister test.py from the repository's root directory. To see a minimalistic setup of PocketIC in a Motoko project, check out the ICP Hello World Motoko repository. Documentation How to use this library PocketIC repo PocketIC server compatibility Why PocketIC Changelog of PocketIC Python Contributing See CONTRIBUTING.md","default_branch":null,"files":null,"tree":[],"storefront":"/r/dfinity","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dfinity/pocketic-py/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}