Skip to content

Commit

Permalink
fix: add prerequisites and dependencies in the cleaning demo
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamgambhir97 committed Dec 4, 2024
1 parent f9165d8 commit ffc4dc8
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions pages/examples/intermediate/agents-cleaning-demo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ This example shows how to set up a cleaning service using the uAgents library to
- [Agents address ↗️](/guides/agents/getting-started/getting-uagent-address)
- [How to use agents to send tokens ↗️](/guides/agents/intermediate/send-tokens)

## Pre-requisites

- **Python:** Download and install from [Python official website ↗️](https://www.python.org/downloads/).
- **Poetry:** Install by following the instructions on [Poetry's official website ↗️](https://python-poetry.org/docs/#installation).

## Project Structure

Outline of basic structure of the project:
Expand Down Expand Up @@ -368,6 +373,23 @@ if __name__ == "__main__":
</DocsCode>
</CodeGroup>

### Poetry Dependencies

```pyproject.toml copy filename="pyproject.toml"
[tool.poetry.dependencies]
python = ">=3.9,<3.13"
uagents = "^0.17.1"
tortoise-orm = "^0.22.1"
geopy = "^2.4.1"
```

#### Instructions to execute the example.

- Navigate to the root folder of the example.
- Install dependencies by running `poetry install`.
- Run the cleaner agent with `python cleaner.py`.
- Run the user agent with `python user.py`.

### Expected Output

- Cleaner Agent
Expand Down

0 comments on commit ffc4dc8

Please sign in to comment.