Skip to content

Commit 96fd811

Browse files
author
Rasmus Oscar Welander
committed
Updated project structure
1 parent 7a3126c commit 96fd811

32 files changed

+92
-84
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ dmypy.json
157157
# Cython debug symbols
158158
cython_debug/
159159

160+
# MacOS
161+
.DS_Store
162+
160163
# PyCharm
161164
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
162165
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ To use `cs3client`, you first need to import and configure it. Here's a simple e
115115
```python
116116
import logging
117117
import configparser
118-
from cs3client import CS3Client
119-
from auth import Auth
118+
from cs3client.cs3client import CS3Client
119+
from cs3client.auth import Auth
120120

121121
config = configparser.ConfigParser()
122122
with open("default.conf") as fdef:
File renamed without changes.

src/app.py renamed to cs3client/app.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
import cs3.app.provider.v1beta1.resources_pb2 as cs3apr
1414
from cs3.gateway.v1beta1.gateway_api_pb2_grpc import GatewayAPIStub
1515

16-
from cs3resource import Resource
17-
from statuscodehandler import StatusCodeHandler
18-
from config import Config
16+
from .cs3resource import Resource
17+
from .statuscodehandler import StatusCodeHandler
18+
from .config import Config
1919

2020

2121
class App:

src/auth.py renamed to cs3client/auth.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
from cs3.gateway.v1beta1.gateway_api_pb2_grpc import GatewayAPIStub
1616
from cs3.rpc.v1beta1.code_pb2 import CODE_OK
1717

18-
from cs3client import CS3Client
19-
from exceptions.exceptions import AuthenticationException, SecretNotSetException
20-
from config import Config
18+
from .cs3client import CS3Client
19+
from .exceptions.exceptions import AuthenticationException, SecretNotSetException
20+
from .config import Config
2121

2222

2323
class Auth:

src/checkpoint.py renamed to cs3client/checkpoint.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
import cs3.storage.provider.v1beta1.provider_api_pb2 as cs3spp
1313
from cs3.gateway.v1beta1.gateway_api_pb2_grpc import GatewayAPIStub
1414

15-
from config import Config
16-
from statuscodehandler import StatusCodeHandler
17-
from cs3resource import Resource
15+
from .config import Config
16+
from .statuscodehandler import StatusCodeHandler
17+
from .cs3resource import Resource
1818

1919

2020
class Checkpoint:
File renamed without changes.

src/cs3client.py renamed to cs3client/cs3client.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
import cs3.gateway.v1beta1.gateway_api_pb2_grpc as cs3gw_grpc
1212
from configparser import ConfigParser
1313

14-
from file import File
15-
from user import User
16-
from share import Share
17-
from statuscodehandler import StatusCodeHandler
18-
from app import App
19-
from checkpoint import Checkpoint
20-
from config import Config
14+
from .file import File
15+
from .user import User
16+
from .share import Share
17+
from .statuscodehandler import StatusCodeHandler
18+
from .app import App
19+
from .checkpoint import Checkpoint
20+
from .config import Config
2121

2222

2323
class CS3Client:
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)