Comments (6)
抱歉,readthedocs 还不支持 Python 3.6,我提交内测申请了但没人理我。文档目前先看 README 吧,更详细的还没有写,欢迎帮忙~!
from gino.
Will fix in #4
from gino.
然而README的那个例子都跑不通,比如
import asyncio
from gino import Gino, enable_task_local
db = Gino()
class User(db.Model):
__tablename__ = 'users'
id = db.Column()
db没有Column这个方法...
Gino version: 0.4.1
from gino.
我这里是可以的:
(py36env) fantix@bogon:~/PycharmProjects$ pip install gino
Collecting gino
Downloading gino-0.4.1.tar.gz
Requirement already satisfied: asyncpg~=0.12 in /Volumes/Home/fantix/py36env/lib/python3.6/site-packages (from gino)
Requirement already satisfied: SQLAlchemy~=1.1 in /Volumes/Home/fantix/py36env/lib/python3.6/site-packages (from gino)
Building wheels for collected packages: gino
Running setup.py bdist_wheel for gino ... done
Stored in directory: /Volumes/Home/fantix/Library/Caches/pip/wheels/f4/44/0c/fa22159f677cc0026795079ae04c69ccf73bbd548e5213964f
Successfully built gino
Installing collected packages: gino
Successfully installed gino-0.4.1
(py36env) fantix@bogon:~/PycharmProjects$ ipython
Python 3.6.1 (default, Apr 4 2017, 09:40:21)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: from gino import Gino
In [2]: db = Gino()
In [3]: db.Column
Out[3]: sqlalchemy.sql.schema.Column
from gino.
感谢回复,那就是我的Python环境有问题,我去找个干净的环境试试.
from gino.
不客气,如有问题请再回复。
from gino.
Related Issues (20)
- Make a convenient way for GinoConnection to generate and execute DDLs HOT 1
- [Suggestion] Docs Translation HOT 1
- Reflect Via metadata failing HOT 2
- Pycharm IDE can not show some suggestions about Gino HOT 3
- I want to know how gino configures mysql HOT 1
- AttributeError: module 'sqlalchemy.sql.schema' has no attribute '_schema_getter' HOT 5
- Setting variables on connection HOT 3
- Add an easy way to do bulk update HOT 4
- Cannot install gino with fastapi HOT 2
- Many-to-many relation, adding property from association table
- SELECT ... FOR UPDATE SKIP LOCKED seems to not lock rows HOT 1
- Allow to pass hide_parameters into GinoEngine
- Following the tutorial 'Build a FastAPI Server' fails at the second step... HOT 1
- Gino 1.1b2 doesn't work on Python 3.10.2 and aiomysql
- TypeError while trying to initialize Gino db with MySQL
- DB initialisation with mangum
- gino does not work correctly with enum types in postgresql HOT 2
- Version bump of SQLAlchemy 1.4 HOT 4
- TypeError: expected str, got int
- Dependencies issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gino.