开发者

Using YAML in GAE environment

GAE uses PyYAML to deal with YAML files. I 开发者_StackOverflow中文版see that library in GAE Python SDK in lib folder inside GAE SDK folder. I copied it into my app project and imported its modules. It's all working fine on my local PC. Is that possible to use PyYAML from GAE environment without having to have a copy of it in my application? If it's available in GAE on the server, then I suppose there is an access to this library. How to properly import it?


According to the website, PyYAML 3.05 is included:

The App Engine Python SDK uses YAML as the format for its configuration files. The environment provides the YAML parsing libraries for Python, PyYAML 3.05.

I expect you can just include it the normal way:

>>> import yaml
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜