2 ms·
I use python without any dependencies on web servers. Pip is cool, but you don't need to get pulled into the node-like dependecy hell. For example instead of r
by TZubiri 1y ago
I use python without any dependencies on web servers. Pip is cool, but you don't need to get pulled into the node-like dependecy hell.
For example instead of requests, you can use http.client, instead of flask, http.server, or socket.tcpserver, or just socket. If you want sqlite, don't jump to pip install sqlite or whatever, use sockets to talk to it.
- jonotime 1y agoHow do you use only sockets to talk to sqlite?
- rednafi 1y agoWhy do you need to do that when Python has built in sqlite3 support?
- TZubiri 1y agoRight, my bad, I was thinking of psql or mysql. If you had to use sqlite without library, you can trivially call the c api from python directly with the ctypes builtin (or compile a python module with c api)