Skip to content

Commit

Permalink
New SDK structure (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshalX authored Dec 21, 2023
1 parent 08aeeab commit 6de3060
Show file tree
Hide file tree
Showing 612 changed files with 2,741 additions and 2,427 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
Code snippet:
```python
from atproto import Client, models
from atproto.utils import TextBuilder
from atproto_client.utils import TextBuilder


def main():
Expand All @@ -50,7 +50,7 @@ if __name__ == '__main__':
import asyncio

from atproto import AsyncClient, models
from atproto.utils import TextBuilder
from atproto_client.utils import TextBuilder


async def main():
Expand Down
22 changes: 0 additions & 22 deletions atproto/__init__.py

This file was deleted.

301 changes: 0 additions & 301 deletions atproto/xrpc_client/models/__init__.py

This file was deleted.

2 changes: 1 addition & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SPHINXGENERATE ?= sphinx-apidoc
MODULEPATH = ../atproto
MODULEPATH = ../packages
SOURCEDIR = source
GENDIR = source/atproto
BUILDDIR = build
Expand Down
4 changes: 2 additions & 2 deletions docs/fix_title_of_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
def main(path: Path) -> None:
for root, _, files in os.walk(path):
for file in files:
if file.startswith('atproto.xrpc_client.models.'):
if file.startswith('atproto_client.models.'):
file_path = os.path.join(root, file)
with open(file_path, 'r', encoding='UTF-8') as f:
content = f.read()
content = content.replace('atproto.xrpc\\_client.models.', '')
content = content.replace('atproto\\_client.models.', '')
with open(file_path, 'w', encoding='UTF-8') as f:
f.write(content)
print('Fix', file)
Expand Down
2 changes: 1 addition & 1 deletion docs/gen_aliases_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def main(init_path: Path, output_path: Path) -> None:


if __name__ == '__main__':
models_init_path = Path(__file__).absolute().parent.parent.joinpath('atproto/xrpc_client/models/__init__.py')
models_init_path = Path(__file__).absolute().parent.parent.joinpath('packages/atproto_client/models/__init__.py')
aliases_db_path = Path(__file__).absolute().parent.joinpath('source/aliases_db.py')

main(models_init_path, aliases_db_path)
276 changes: 138 additions & 138 deletions docs/source/aliases_db.py

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions docs/source/atproto/atproto.car.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/atproto/atproto.cbor.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/atproto/atproto.cid.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/atproto/atproto.cli.rst

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/atproto/atproto.codegen.models.builder.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/atproto/atproto.codegen.models.generator.rst

This file was deleted.

16 changes: 0 additions & 16 deletions docs/source/atproto/atproto.codegen.models.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/atproto/atproto.codegen.namespaces.builder.rst

This file was deleted.

16 changes: 0 additions & 16 deletions docs/source/atproto/atproto.codegen.namespaces.rst

This file was deleted.

17 changes: 0 additions & 17 deletions docs/source/atproto/atproto.codegen.rst

This file was deleted.

16 changes: 0 additions & 16 deletions docs/source/atproto/atproto.firehose.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/atproto/atproto.lexicon.models.rst

This file was deleted.

16 changes: 0 additions & 16 deletions docs/source/atproto/atproto.lexicon.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/atproto/atproto.nsid.rst

This file was deleted.

19 changes: 0 additions & 19 deletions docs/source/atproto/atproto.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,6 @@ atproto
:undoc-members:
:show-inheritance:

Subpackages
-----------

.. toctree::
:maxdepth: 4

atproto.car
atproto.cbor
atproto.cid
atproto.cli
atproto.codegen
atproto.firehose
atproto.lexicon
atproto.nsid
atproto.uri
atproto.utils
atproto.xrpc_client
atproto.xrpc_server

Submodules
----------

Expand Down
7 changes: 0 additions & 7 deletions docs/source/atproto/atproto.uri.rst

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/atproto/atproto.xrpc_client.client.async_raw.rst

This file was deleted.

7 changes: 0 additions & 7 deletions docs/source/atproto/atproto.xrpc_client.client.client.rst

This file was deleted.

16 changes: 0 additions & 16 deletions docs/source/atproto/atproto.xrpc_client.client.methods_mixin.rst

This file was deleted.

This file was deleted.

This file was deleted.

28 changes: 0 additions & 28 deletions docs/source/atproto/atproto.xrpc_client.client.rst

This file was deleted.

23 changes: 0 additions & 23 deletions docs/source/atproto/atproto.xrpc_client.models.app.bsky.actor.rst

This file was deleted.

Loading

0 comments on commit 6de3060

Please sign in to comment.