-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9f3bdfb
commit 922c5c6
Showing
14 changed files
with
142 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Python Prepro | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: set up python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.12' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install -U pip | ||
pip install -r dev_requirements.txt | ||
- name: Test with pytest | ||
run: | | ||
python -m pytest tests/test_unit_citycode_class.py tests/test_unit_proptransactions_class.py | ||
- name: code formatter | ||
run: | | ||
python -m isort . | ||
python -m black * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
## 開発メモ | ||
|
||
|
||
### add-new-feature | ||
|
||
- お値段の通貨選択機能の追加を検討中。 | ||
|
||
|
||
### 20231020 | ||
|
||
- released version_0.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ flake8 | |
mypy | ||
pytest | ||
build | ||
wheel | ||
wheel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
from . import j_realty_en | ||
from . import j_realty_jp | ||
from . import j_realty_en, j_realty_jp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
pandas | ||
requests | ||
requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from j_realty_api import j_realty_en | ||
|
||
d = j_realty_en.CityCode('Kyoto') | ||
print(d.pref_code) | ||
d = j_realty_en.CityCode("Kyoto") | ||
print(d.pref_code) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
from setuptools import setup, find_packages | ||
|
||
from setuptools import find_packages, setup | ||
|
||
setup( | ||
name='j_realty_api', | ||
name="j_realty_api", | ||
version=0.1, | ||
packages=find_packages(), | ||
install_requires=[ | ||
'pandas', | ||
'requests' | ||
], | ||
include_package_data=True | ||
) | ||
install_requires=["pandas", "requests"], | ||
include_package_data=True, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
from j_realty_api import j_realty_en as je | ||
|
||
cc = je.CityCode('kyoto') | ||
cc = je.CityCode("kyoto") | ||
pref_code = cc.pref_code | ||
city_code = cc.city_code('kyoto') | ||
city_code = cc.city_code("kyoto") | ||
pt = je.PropTransactions( | ||
pref_code, | ||
city_code, | ||
) | ||
|
||
df = pt.get_data() | ||
df.to_csv('./tests/data/test.csv') | ||
df.to_csv("./tests/data/test.csv") | ||
print(df.info()) |
Oops, something went wrong.