[PYTHON] Use external modules on Google App Engine

Use external modules on Google App Engine

I decided to make a Twitter Bot that bombs the fabo, but I haven't rented a server, so I decided to use Google App Engine (GAE).


Conclusion


Consideration

I wanted to use a module called Twtyhon to use the Twitter API, but GAE doesn't support Twython by default.

Not limited to Twython, there are few modules included by default, so I think that you will have to add some modules yourself.

Each module has a dependency. For example Twython uses modules such as requests and requests_oauthlib. Then you need to put these in Twython. It's annoying.

So I made a copy of what's under site-packages and put it there! Did you do something when you installed it?

For the time being, it took about an hour just for this trouble (β—žβ€Έβ—Ÿ)

Recommended Posts

Use external modules on Google App Engine
Use ndb.tasklet on Google App Engine
How to use Django on Google App Engine / Python
[Python] Run Flask on Google App Engine
Use Django's ImageField on App Engine / Python
Tweet (API 1.1) on Google App Engine for Python
Deploy a Django application on Google App Engine (Python3)
(Beginner) Basic usage of Datastore on Google App Engine
PIL with Python on Windows 8 (for Google App Engine)
Deploy your Go app on Google App Engine with GitHub Actions
Java 1 1 support from Google App Engine
Publish the site for free on Google App Engine (personal memorandum)
Building a development environment with Maven on Google App Engine [Java]
Using properties files with Flexible Environment Java 8 on Google App Engine
Use The Metabolic Disassembler on Google Colaboratory
How to use Google Assistant on Windows 10
[Google App Engine] User Objects (Japanese translation)
Use Python external module on Sakura Internet
I can't deploy with google app engine
Deploy a Python app on Google App Engine and integrate it with GitHub
Google App Engine Datastore and Search API integration
Check when the HTML obtained by Requests on Google App Engine is garbled
How to use a library that is not originally included in Google App Engine
Until you run a Flask application on Google App Engine for the time being
Google App Engine / Python development environment construction procedure (late 2014)
Getting Started with Google App Engine for Python & PHP
Runtime version of Google App Engine / Python Standard Environment
Use pyvenv on Windows
Do you have any recommendations for a commentary book on Google App Engine / Python development?
Use Ansible on Windows
Use QuTiP on Windows
Use pip on Windows
Hello World with Google App Engine (Java 8) + Servlet API 3.1 + Gradle
Save in Japanese to StringProperty in Google App Engine data store
Hello World with Google App Engine (Java 11) + Spring Boot + Gradle
Print PDF in Python on Windows: Use an external application