It is a simple Flask project where the processing is done both in the foreground and in the background.
pip install Flask pip install email-validator pip install Flask-Login pip install Flask-SQLAlchemy pip install WTForms pip install requests pip install pwinput
You can start web service with python service.py
then see localhost:5000
address.
You can perform operations such as logging in and registering both via the web interface and through requests.
username = "test_username" email = "test_email@test.com" password = ***** user = RequestProcess(username, email, password)
user.register_request()
user.login_request()
title = "Test Title" content = "Test Content\nTest Content\nTest Content\nTest Content\nTest Content" user.add_article_request(title=title, content=content)
user.dashboard_request()
{ "data": { "1": { "Created Date": "03.05.2023 23:53:53", "Title": "Test Title" } }, "message": "Success Get Articles" }
article_id = 1 user.article_detail_request(article_id=article_id)
{ "message": { "1": { "Content": "Test Content
\r\n\r\nTest Content
\r\n\r\nTest Content
\r\n\r\nTest Content
\r\n\r\nTest Content
\r\n", "Created Date": "03.05.2023 23:53:53", "Title": "Test Title" } } }