Skip to content

Commit

Permalink
Rename module
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoelho93 committed May 1, 2024
1 parent a07c9cb commit b3f9705
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export TRADING_212_KEY=<your-api-key>
```

```python
from python_trading212 import Trading212, Pie
from trading212 import Trading212, Pie

trading212 = Trading212()
pie: Pie = trading212.fetch_pie(123)
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ version = "1.0.0"
description = "An unofficial client for the official Trading212 API"
authors = ["José Coelho <[email protected]>"]
readme = "README.md"
packages = [
{ include = "trading212", from = "." }
]

[tool.poetry.dependencies]
python = "^3.12"
Expand Down
4 changes: 2 additions & 2 deletions python_trading212/__init__.py → trading212/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from python_trading212.trading212 import Trading212 # noqa
from python_trading212.models import ( # noqa
from trading212.trading212 import Trading212 # noqa
from trading212.models import ( # noqa
Position, Exchange, Instrument,
Pie, Order, AccountCash, AccountMetadata,
HistoricalOrderData, LimitOrder, MarketOrder,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import requests
from typing import List, Dict
from requests.exceptions import HTTPError
from python_trading212.models import (
from trading212.models import (
Position, Exchange, Instrument,
Pie, Order, AccountCash, AccountMetadata,
HistoricalOrderData, LimitOrder, MarketOrder,
Expand Down

0 comments on commit b3f9705

Please sign in to comment.