Skip to content

Commit

Permalink
fix(sdk): Cleaned Numerous app engine
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasse-numerous committed Oct 25, 2024
1 parent 9c41234 commit 9551179
Show file tree
Hide file tree
Showing 27 changed files with 97 additions and 814 deletions.
18 changes: 1 addition & 17 deletions README.md → docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,20 +88,4 @@ You can lint with:

And you can run tests with

make cli-test

### Trying out Numerous app engine development

In the `examples/numerous` folder are two apps `action.py` (containing
`ActionTool`), and `parameters.py` (containing `ParameterTool`). These can be
used to test the Numerous app engine development features.

**Note: You need an activate python environment with the python SDK installed.**
See the [python sdk development section](#development-of-python-sdk-) for
information about how to install it.

For example, if you built using `make cli-build`, you can run

```
./build/numerous dev examples/numerous/parameters.py:ParameterApp
```
make cli-test
13 changes: 6 additions & 7 deletions docs/collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ Collections acts as a schemaless database, where users can store, retrieve, and
4. Tag documents and files with key/value tags, and filter documents and files
by these tags.

!!! info
This feature only supports apps that are deployed to Numerous.

!!! info
Remember to add `numerous` as a dependency in your project; most likely to
your `requirements.txt` file.
This feature only supports apps that are deployed to Numerous.

Remember to add `numerous` as a dependency in your project; most likely to your `requirements.txt` file.

## Basic usage

Expand Down Expand Up @@ -59,6 +57,7 @@ else:
```


Below is the API reference for working with collections in Numerous:
## API Reference

::: numerous.collection
::: numerous.collections
::: numerous.collections.collection.collection
13 changes: 0 additions & 13 deletions examples/numerous/action.py

This file was deleted.

25 changes: 0 additions & 25 deletions examples/numerous/container.py

This file was deleted.

22 changes: 0 additions & 22 deletions examples/numerous/fields.py

This file was deleted.

32 changes: 0 additions & 32 deletions examples/numerous/html.py

This file was deleted.

1 change: 0 additions & 1 deletion examples/numerous/importing.py

This file was deleted.

12 changes: 0 additions & 12 deletions examples/numerous/parameters.py

This file was deleted.

40 changes: 0 additions & 40 deletions examples/numerous/plot.py

This file was deleted.

24 changes: 0 additions & 24 deletions examples/numerous/sliders.py

This file was deleted.

9 changes: 0 additions & 9 deletions examples/numerous/syntax.py

This file was deleted.

2 changes: 1 addition & 1 deletion python/src/numerous/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""The python SDK for numerous."""

from .collection import collection
from .collections import collection
2 changes: 1 addition & 1 deletion python/src/numerous/_client/_get_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from pathlib import Path
from typing import Optional

from numerous.collection._client import Client
from numerous.collections._client import Client
from numerous.generated.graphql.client import Client as GQLClient

from ._fs_client import FileSystemClient
Expand Down
2 changes: 1 addition & 1 deletion python/src/numerous/_client/_graphql_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
from typing import Optional, Union

from numerous.collection.exceptions import ParentCollectionNotFoundError
from numerous.collections.exceptions import ParentCollectionNotFoundError
from numerous.generated.graphql.client import Client as GQLClient
from numerous.generated.graphql.collection_collections import (
CollectionCollectionsCollectionCreateCollection,
Expand Down
1 change: 0 additions & 1 deletion python/src/numerous/appdev/__init__.py

This file was deleted.

Loading

0 comments on commit 9551179

Please sign in to comment.