Black Hills Information Security 09月29日
Python库打包:从繁琐到简单
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

本文探讨了Python库打包的繁琐过程,并介绍了使用Black Hills Information Security的Marcello Salvati在Webcast中提出的简化打包流程的方法,包括使用Poetry和Cookiecutter等工具。



























Have you ever tried packaging a Python library/app in order to upload it to the Python Package repository (Pypi)?



Not so straight forward is it? There’s a gazillion files you need (setup.py, Manifiest.ini, etc..) which all do different things. On top of that, there’s a decent amount of overhead to configure the necessary settings in order to expose any command line interface (CLI) tools your packaging. Additionally, you also need to manage dependencies, keep them in sync with your requirements.txt files and install third-party applications in order to upload them to Pypi. That’s after you even manage to setup a proper development environment and necessary virtual environments for your dependencies.



Ever wonder if there’s a simpler solution that takes care of everything for you?



In this Black Hills Information Security (BHIS) webcast, Marcello will show you how to make the entire Python development & packaging process as short and simple as a Haiku (https://python-poetry.org/). He’ll also show you the setup/workflow that he uses for all of his Python projects and throw in some pro tips along the way.



Missed the first episode? Check out Pretty Little Python Secrets—EP 1—Installing Python Tools/ Libraries the Right Way- Marcello Salvati — https://youtu.be/ieyRV9zQd2U



Join the Black Hills Information Security Discord Community — https://discord.gg/aHHh3u5



0:00:00 – PreShow Banter™ — Everybody Leaves West Virginia



0:12:15 – FEATURE PRESENTATION: Making Python Packaging Haiku Simple



0:16:56 – Why and How to Package Python?



0:23:26 – What Are All These Files?



0:31:28 – How to Upload the Dang Thing



0:37:01 – Setup a Development Environment?



0:42:44 – Pipenv!



0:46:52 – Pipenb Solves, but Also Creates Problems



0:49:21 – Poetry Corner



0:58:11 – Cookiecutter Automation



<a href="https://www.youtube.

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

Python 库打包 Poetry Cookiecutter 开发工具
相关文章