initial commit

master
alex 2023-08-17 21:12:02 +02:00
commit 3993ddb7ee
11 changed files with 73 additions and 0 deletions

3
.idea/.gitignore vendored 100644
View File

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

1
.idea/.name 100644
View File

@ -0,0 +1 @@
monday_test

View File

@ -0,0 +1,14 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoredPackages">
<value>
<list size="1">
<item index="0" class="java.lang.String" itemvalue="flask-swagger-ui" />
</list>
</value>
</option>
</inspection_tool>
</profile>
</component>

View File

@ -0,0 +1,6 @@
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>

4
.idea/misc.xml 100644
View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11 (venv)" project-jdk-type="Python SDK" />
</project>

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/../monday_test/.idea/monday_test.iml" filepath="$PROJECT_DIR$/../monday_test/.idea/monday_test.iml" />
</modules>
</component>
</project>

View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/venv" />
</content>
<orderEntry type="jdk" jdkName="Python 3.11 (venv)" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

12
app.py 100644
View File

@ -0,0 +1,12 @@
from monday.client import Client
class App:
def __init__(self):
self._client = Client('eyJhbGciOiJIUzI1NiJ9.eyJ0aWQiOjI3NTgyNjU4NywiYWFpIjoxMSwidWlkIjo0NzQxNzc3NywiaWFkIjoiMjAyMy0wOC0xN1QxODoyMzoyMS41MjZaIiwicGVyIjoibWU6d3JpdGUiLCJhY3RpZCI6MTgzMzQ3NjAsInJnbiI6ImV1YzEifQ.3gb_81-hrIf6O7U-TKrsE-bgglkaQn73rbws5yfaT3A')
def start(self):
user = self._client.get_current_user()
print(user)
# self._client.items.create_item(board_id='1251126894', group_id='today', item_name='Do a thing')
item = self._client.create_item(1251126894, 'test', {"Project": "column_value"})

6
main.py 100644
View File

@ -0,0 +1,6 @@
from app import App
if __name__ == '__main__':
app = App()
app.start()

1
monday_token.txt 100644
View File

@ -0,0 +1 @@
eyJhbGciOiJIUzI1NiJ9.eyJ0aWQiOjI3NTgyNjU4NywiYWFpIjoxMSwidWlkIjo0NzQxNzc3NywiaWFkIjoiMjAyMy0wOC0xN1QxODoyMzoyMS41MjZaIiwicGVyIjoibWU6d3JpdGUiLCJhY3RpZCI6MTgzMzQ3NjAsInJnbiI6ImV1YzEifQ.3gb_81-hrIf6O7U-TKrsE-bgglkaQn73rbws5yfaT3A

8
requirements.txt 100644
View File

@ -0,0 +1,8 @@
certifi==2023.7.22
charset-normalizer==3.2.0
et-xmlfile==1.1.0
idna==3.4
monday-python==0.1.0
openpyxl==3.1.2
requests==2.31.0
urllib3==2.0.4