Skip to content

Commit e4493c0

Browse files
datancoffeesocksy
andauthored
Update the Readme (#204)
* Updated Readme for Tower CLI * Added an MCP guide * Restored dbt section under optional * Added pointer to full MCP docs for users of other AI assistants * Addressing Brad's comments * Update INSTALL-AND-REFERENCE.md Co-authored-by: Ben Lovell <ben@tower.dev> * Applying feedback * Added some additional case studies --------- Co-authored-by: Ben Lovell <ben@tower.dev>
1 parent f47920d commit e4493c0

5 files changed

Lines changed: 435 additions & 434 deletions

File tree

CODE_OF_CONDUCT.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ representative at an online or offline event.
5555
## Enforcement
5656

5757
Instances of abusive, harassing, or otherwise unacceptable behaviour may be
58-
reported to the community leaders responsible for enforcement at <engineering@tower.dev>.
58+
reported to the community leaders responsible for enforcement at <hello@tower.dev>.
5959
All complaints will be reviewed and investigated promptly and fairly.
6060

6161
All community leaders are obligated to respect the privacy and security of the
@@ -113,3 +113,7 @@ This Code of Conduct is adapted from the [Contributor Covenant](https://contribu
113113
[1.4](https://www.contributor-covenant.org/version/1/4/code-of-conduct/code_of_conduct.md) and
114114
[2.0](https://www.contributor-covenant.org/version/2/0/code_of_conduct/code_of_conduct.md),
115115
and was generated by [contributing.md](https://contributing.md/generator).
116+
117+
---
118+
119+
See also: [CONTRIBUTING.md](CONTRIBUTING.md) · [DEVELOPMENT.md](DEVELOPMENT.md) · [README.md](README.md)

CONTRIBUTING.md

Lines changed: 39 additions & 131 deletions
Original file line numberDiff line numberDiff line change
@@ -1,164 +1,72 @@
1-
<!-- omit in toc -->
21
# Contributing to tower-cli
32

4-
First off, thanks for taking the time to contribute! ❤️
3+
Thanks for taking the time to contribute!
54

6-
All types of contributions are encouraged and valued. See the [Table of Contents](#table-of-contents) for different ways to help and details about how this project handles them. Please make sure to read the relevant section before making your contribution. It will make it a lot easier for us maintainers and smooth out the experience for all involved. The community looks forward to your contributions. 🎉
7-
8-
> And if you like the project, but just don't have time to contribute, that's fine. There are other easy ways to support the project and show your appreciation, which we would also be very happy about:
9-
> - Star the project
10-
> - Tweet about it
11-
> - Refer this project in your project's readme
12-
> - Mention the project at local meetups and tell your friends/colleagues
13-
14-
<!-- omit in toc -->
15-
## Table of Contents
16-
17-
- [Code of Conduct](#code-of-conduct)
18-
- [I Have a Question](#i-have-a-question)
19-
- [I Want To Contribute](#i-want-to-contribute)
20-
- [Reporting Bugs](#reporting-bugs)
21-
- [Suggesting Enhancements](#suggesting-enhancements)
22-
- [Your First Code Contribution](#your-first-code-contribution)
23-
- [Improving The Documentation](#improving-the-documentation)
24-
- [Styleguides](#styleguides)
25-
- [Commit Messages](#commit-messages)
26-
- [Join The Project Team](#join-the-project-team)
5+
All types of contributions are encouraged and valued. Please read the relevant section before making your contribution.
276

7+
**Related documentation:**
8+
- [README.md](README.md) — Quick start
9+
- [DEVELOPMENT.md](DEVELOPMENT.md) — Development setup, running tests
10+
- [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) — Community guidelines
11+
- [INSTALL-AND-REFERENCE.md](INSTALL-AND-REFERENCE.md) — Advanced installation options
2812

2913
## Code of Conduct
3014

31-
This project and everyone participating in it is governed by the
32-
[tower-cli Code of Conduct](https://github.com/tower/tower-cli/blob/main/CODE_OF_CONDUCT.md).
33-
By participating, you are expected to uphold this code. Please report unacceptable behavior
34-
to <engineering@tower.dev>.
35-
15+
This project is governed by our [Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Report unacceptable behavior to <hello@tower.dev>.
3616

3717
## I Have a Question
3818

39-
> If you want to ask a question, we assume that you have read the available [Documentation](https://docs.tower.dev).
40-
41-
Before you ask a question, it is best to search for existing [Issues](https://github.com/tower/tower-cli/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue. It is also advisable to search the internet for answers first.
42-
43-
If you then still feel the need to ask a question and need clarification, we recommend the following:
19+
Before asking, please check the [documentation](https://docs.tower.dev) and search existing [issues](https://github.com/tower/tower-cli/issues).
4420

45-
- Open an [Issue](https://github.com/tower/tower-cli/issues/new).
46-
- Provide as much context as you can about what you're running into.
47-
- Provide project and platform versions (nodejs, npm, etc), depending on what seems relevant.
48-
49-
We will then take care of the issue as soon as possible.
50-
51-
<!--
52-
You might want to create a separate issue tag for questions and include it in this description. People should then tag their issues accordingly.
53-
54-
Depending on how large the project is, you may want to outsource the questioning, e.g. to Stack Overflow or Gitter. You may add additional contact and information possibilities:
55-
- IRC
56-
- Slack
57-
- Gitter
58-
- Stack Overflow tag
59-
- Blog
60-
- FAQ
61-
- Roadmap
62-
- E-Mail List
63-
- Forum
64-
-->
21+
If you still need help:
22+
- Open an [issue](https://github.com/tower/tower-cli/issues/new)
23+
- Provide as much context as you can
24+
- Include relevant version info (Python, OS, tower-cli version)
6525

6626
## I Want To Contribute
6727

68-
> ### Legal Notice <!-- omit in toc -->
69-
> When contributing to this project, you must agree that you have authored 100% of the content, that you have the necessary rights to the content and that the content you contribute may be provided under the project licence.
28+
> **Legal Notice:** When contributing, you must agree that you have authored 100% of the content, have the necessary rights, and that it may be provided under the project license.
7029
7130
### Reporting Bugs
7231

73-
<!-- omit in toc -->
74-
#### Before Submitting a Bug Report
75-
76-
A good bug report shouldn't leave others needing to chase you up for more information. Therefore, we ask you to investigate carefully, collect information and describe the issue in detail in your report. Please complete the following steps in advance to help us fix any potential bug as fast as possible.
77-
78-
- Make sure that you are using the latest version.
79-
- Determine if your bug is really a bug and not an error on your side e.g. using incompatible environment components/versions (Make sure that you have read the [documentation](https://docs.tower.dev). If you are looking for support, you might want to check [this section](#i-have-a-question)).
80-
- To see if other users have experienced (and potentially already solved) the same issue you are having, check if there is not already a bug report existing for your bug or error in the [bug tracker](https://github.com/tower/tower-cli/issues?q=label%3Abug).
81-
- Also make sure to search the internet (including Stack Overflow) to see if users outside of the GitHub community have discussed the issue.
82-
- Collect information about the bug:
83-
- Stack trace (Traceback)
84-
- OS, Platform and Version (Windows, Linux, macOS, x86, ARM)
85-
- Version of the interpreter, compiler, SDK, runtime environment, package manager, depending on what seems relevant.
86-
- Possibly your input and the output
87-
- Can you reliably reproduce the issue? And can you also reproduce it with older versions?
88-
89-
<!-- omit in toc -->
90-
#### How Do I Submit a Good Bug Report?
32+
#### Before Submitting
9133

92-
> You must never report security related issues, vulnerabilities or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead sensitive bugs must be sent by email to <security@tower.dev>.
93-
<!-- You may add a PGP key to allow the messages to be sent encrypted as well. -->
34+
- Make sure you're using the latest version
35+
- Verify it's a bug and not a configuration issue (check the [docs](https://docs.tower.dev))
36+
- Search the [bug tracker](https://github.com/tower/tower-cli/issues?q=label%3Abug) for existing reports
37+
- Collect: stack trace, OS/platform, relevant versions, reproduction steps
9438

95-
We use GitHub issues to track bugs and errors. If you run into an issue with the project:
39+
#### Submitting a Bug Report
9640

97-
- Open an [Issue](https://github.com/tower/tower-cli/issues/new). (Since we can't be sure at this point whether it is a bug or not, we ask you not to talk about a bug yet and not to label the issue.)
98-
- Explain the behavior you would expect and the actual behavior.
99-
- Please provide as much context as possible and describe the *reproduction steps* that someone else can follow to recreate the issue on their own. This usually includes your code. For good bug reports you should isolate the problem and create a reduced test case.
100-
- Provide the information you collected in the previous section.
41+
> **Security issues:** Never report security vulnerabilities publicly. Email <hello@tower.dev> instead.
10142
102-
Once it's filed:
103-
104-
- The project team will label the issue accordingly.
105-
- A team member will try to reproduce the issue with your provided steps. If there are no reproduction steps or no obvious way to reproduce the issue, the team will ask you for those steps and mark the issue as `needs-repro`. Bugs with the `needs-repro` tag will not be addressed until they are reproduced.
106-
- If the team is able to reproduce the issue, it will be marked `needs-fix`, as well as possibly other tags (such as `critical`), and the issue will be left to be [implemented by someone](#your-first-code-contribution).
107-
108-
<!-- You might want to create an issue template for bugs and errors that can be used as a guide and that defines the structure of the information to be included. If you do so, reference it here in the description. -->
43+
Open an [issue](https://github.com/tower/tower-cli/issues/new) with:
44+
- Expected vs actual behavior
45+
- Reproduction steps
46+
- Environment details
10947

48+
The team will label and triage accordingly.
11049

11150
### Suggesting Enhancements
11251

113-
This section guides you through submitting an enhancement suggestion for tower-cli, **including completely new features and minor improvements to existing functionality**. Following these guidelines will help maintainers and the community to understand your suggestion and find related suggestions.
114-
115-
<!-- omit in toc -->
116-
#### Before Submitting an Enhancement
52+
#### Before Submitting
11753

118-
- Make sure that you are using the latest version.
119-
- Read the [documentation](https://docs.tower.dev) carefully and find out if the functionality is already covered, maybe by an individual configuration.
120-
- Perform a [search](https://github.com/tower/tower-cli/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
121-
- Find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Keep in mind that we want features that will be useful to the majority of our users and not just a small subset. If you're just targeting a minority of users, consider writing an add-on/plugin library.
54+
- Check if functionality already exists in the [docs](https://docs.tower.dev)
55+
- Search [existing issues](https://github.com/tower/tower-cli/issues) first
56+
- Consider if the feature benefits most users
12257

123-
<!-- omit in toc -->
124-
#### How Do I Submit a Good Enhancement Suggestion?
58+
#### Submitting an Enhancement
12559

126-
Enhancement suggestions are tracked as [GitHub issues](https://github.com/tower/tower-cli/issues).
127-
128-
- Use a **clear and descriptive title** for the issue to identify the suggestion.
129-
- Provide a **step-by-step description of the suggested enhancement** in as many details as possible.
130-
- **Describe the current behavior** and **explain which behavior you expected to see instead** and why. At this point you can also tell which alternatives do not work for you.
131-
- You may want to **include screenshots or screen recordings** which help you demonstrate the steps or point out the part which the suggestion is related to. You can use [LICEcap](https://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and the built-in [screen recorder in GNOME](https://help.gnome.org/users/gnome-help/stable/screen-shot-record.html.en) or [SimpleScreenRecorder](https://github.com/MaartenBaert/ssr) on Linux. <!-- this should only be included if the project has a GUI -->
132-
- **Explain why this enhancement would be useful** to most tower-cli users. You may also want to point out the other projects that solved it better and which could serve as inspiration.
133-
134-
<!-- You might want to create an issue template for enhancement suggestions that can be used as a guide and that defines the structure of the information to be included. If you do so, reference it here in the description. -->
60+
Open an [issue](https://github.com/tower/tower-cli/issues) with:
61+
- Clear, descriptive title
62+
- Step-by-step description of the enhancement
63+
- Current behavior vs expected behavior
64+
- Why this would be useful
13565

13666
### Your First Code Contribution
137-
<!-- TODO
138-
include Setup of env, IDE and typical getting started instructions?
139-
140-
-->
141-
142-
### Improving The Documentation
143-
<!-- TODO
144-
Updating, improving and correcting the documentation
145-
146-
-->
147-
148-
149-
150-
## Styleguides
151-
### Commit Messages
152-
<!-- TODO
153-
154-
-->
15567

156-
## Join The Project Team
157-
<!-- TODO -->
68+
See [DEVELOPMENT.md](DEVELOPMENT.md) for environment setup, running tests, and development workflow.
15869

159-
<!-- omit in toc -->
160-
## Attribution
161-
This guide is based on the [contributing.md](https://contributing.md/generator)!
70+
---
16271

163-
## License for Contributions
164-
By submitting a pull request, issue, or any other contribution to this repository, you agree that your contributions will be licensed under the same license that governs this project (as found in the [LICENSE](./LICENSE) file in the repository root). This means your contributions will be included under the project’s existing open source terms and conditions.
72+
This guide is based on [contributing.md](https://contributing.md/generator).

DEVELOPMENT.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Tower CLI and SDK — Development Guide
2+
3+
Development setup and tooling for contributors.
4+
5+
For contribution guidelines (reporting bugs, suggesting features, code of conduct), see [CONTRIBUTING.md](CONTRIBUTING.md).
6+
7+
## Runtime architecture (Rust + Python)
8+
9+
The [tower-runtime](crates/tower-runtime) crate is the Rust runtime used to execute Tower apps. The main crate defines the interfaces; the `local` package implements running Tower packages locally.
10+
11+
See the [tower-package](crates/tower-package) crate for how Tower packages are built and run.
12+
13+
## Development setup
14+
15+
Make sure you have [`uv`](https://github.com/astral-sh/uv) installed.
16+
17+
To interactively test your changes, start a REPL with the project installed in development mode:
18+
19+
```bash
20+
uv run python
21+
```
22+
23+
```python
24+
>>> import tower
25+
>>> table = tower.tables("my_table").load()
26+
```
27+
28+
## Running the CLI locally
29+
30+
```bash
31+
uv run tower --help
32+
```
33+
34+
## Running tests
35+
36+
Copy `pytest.ini.template` to `pytest.ini`:
37+
38+
```bash
39+
cp pytest.ini.template pytest.ini
40+
```
41+
42+
Set the required environment variables (e.g. `TOWER_INFERENCE_ROUTER_API_KEY`) to your own or test values.
43+
44+
Then install dependencies and run the tests:
45+
46+
```bash
47+
uv sync --locked --all-extras --dev
48+
uv run pytest tests
49+
```
50+
51+
## Development flow
52+
53+
Typical development loop:
54+
55+
1. Make changes
56+
2. Run `uv run pytest tests`
57+
3. Run `uv run tower --help` or other CLI commands to verify behavior
58+
59+
## OpenAPI SDK
60+
61+
If you need to get the latest OpenAPI SDK, you can run:
62+
63+
```bash
64+
./scripts/generate-python-api-client.sh
65+
```
66+
67+
## Code Formatting
68+
69+
We use Black for Python code formatting. The pre-commit hooks will automatically format your code, but you can also run it manually:
70+
71+
```bash
72+
# Format all Python files in the project
73+
uv run --group dev black .
74+
75+
# Check formatting without making changes
76+
uv run --group dev black --check .
77+
```
78+
79+
## Code of conduct
80+
81+
Contributions must follow our [Code of Conduct](CODE_OF_CONDUCT.md).

0 commit comments

Comments
 (0)