taogeyt / pyetl Goto Github PK
View Code? Open in Web Editor NEWpython ETL framework
License: Apache License 2.0
python ETL framework
License: Apache License 2.0
columns[k] = (alias[n] for n in v) return a Generator not a list or tuple.
maybe be need to change to columns[k] = [alias[n] for n in v], return a list.
list can support one to many .
[env:]
mysql Ver 14.14 Distrib 5.7.31, for Linux (x86_64) using EditLine wrapper
python 3.7.0
pymysql 0.10.1
[issues:]
when i run this:
AttributeError Traceback (most recent call last)
in
----> 1 writer = DatabaseWriter(dst, table_name="target_table")
~/anaconda3/envs/etl/lib/python3.7/site-packages/pyetl/writer.py in init(self, db, table_name, batch_size)
29
30 def init(self, db, table_name, batch_size=None):
---> 31 super().init(db)
32 self.table_name = table_name
33 self.table = self.db.get_table(self.table_name)
~/anaconda3/envs/etl/lib/python3.7/site-packages/pyetl/connections.py in init(self, db)
16 self.db = db
17 elif isinstance(db, engine.base.Engine) or hasattr(db, "cursor"):
---> 18 self.db = connect(driver=db)
19 elif isinstance(db, dict):
20 self.db = connect(**db)
~/anaconda3/envs/etl/lib/python3.7/site-packages/pydbclib/init.py in connect(*args, **kwargs)
19 else:
20 driver_class = SQLAlchemyDriver
---> 21 return Database(driver_class(*args, **kwargs))
~/anaconda3/envs/etl/lib/python3.7/site-packages/pydbclib/drivers.py in init(self, *args, **kwargs)
88 self.dbapi = sys.modules[driver_param]
89 self.con = self.dbapi.connect(*args, **kwargs)
---> 90 self.compiler = compilers[self.dbapi.paramstyle]
91
92 @Property
AttributeError: module 'pymysql.connections' has no attribute 'paramstyle'
This issues is caused by my version?
### can you tell me your versions of pydbclib,pymysql and mysql?
如能,怎么写呢?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.