• Karrigell是一个灵活蟒蛇的网框架内,有一个明确和直观的语法。

    Karrigell是独立于任何奥姆,数据库或模板发动机,并将我们的程序员之间进行选择的各种编码的风格。

    该软件包包括一个强大的建立在网络服务器,所以没有需要下载,安装和配置一个独立的一个,一个纯粹的-蟒蛇数据库引擎,PyDbLite,这是用于演示。

    Karrigell可配置的工作与外部网络服务器(Apache,Xitami的,程序);该脚本可以使用所有的数据库Python API(源码,mySql,PostGreSQL ZODB等)

    一个新的应用程序,InstantSite,是提供给轻松创建和编辑MySQL数据库和脚本生成,处理通常的污物的操作数据库的数据表。 看看在线闪光灯演示

    创造动态网页,所有你需要知道的是HTML和蟒蛇。 你有选择的不同方式混合他们。

    在短:

    ·你可以使用普通蟒蛇的脚本

    ·Karrigell服务是蟒蛇的脚本中的每个功能相匹配不同的网址:foo。ks/吧匹配功能的条()在脚本foo。ks(如果没有的功能是指定的,该功能的指标()用)

    ·HTML内蟒是另一种形式的蟒蛇剧本,在线开始通过一串是要向浏览器发送,如果有一个打印的发言

    ·Python内HTML是非常喜欢PHP或JSP、HTML网页代码之间插入标签

    ·你可以使用普通CGI scripts:请参见文件cgi模块在标准文件

    ·代码是执行一个"干净"的名字空间,包括HTTP环境、形式田和定义的例外情况。 当形式包括的领域,值为可在脚本的名义下_myfield

    为身份验证和会议,两个职能(不奇怪的命名的认证和会议)可用于在脚本。 认证需要一个认证的测试职能,作为第一个参数,它的检查,如果AUTH_USER和AUTH_PASSWORD被接受。 届会议()用于初始化或检索一届会议的对象,哪些属性可以设定或读

    这包括(file_or_script)功能插入输出的文字或文件内的输出当前的剧本;这是用头或者尾。 如果这是一个脚本是执行目前的名称空间。

  • Karrigell है एक लचीला अजगर वेब ढांचे के साथ, एक स्पष्ट और सहज ज्ञान युक्त वाक्य रचना है ।

    Karrigell से स्वतंत्र है किसी भी ORM, डेटाबेस या templating इंजन अपने प्रोग्रामर के बीच चयन की एक किस्म कोडिंग शैलियों.

    पैकेज भी शामिल है एक शक्तिशाली वेब सर्वर में निर्मित है, तो वहाँ कोई जरूरत नहीं करने के लिए डाउनलोड, स्थापित करें और कॉन्फ़िगर एक अलग से एक है, और एक शुद्ध अजगर डेटाबेस इंजन, PyDbLite, जो प्रयोग किया जाता है के लिए demos.

    Karrigell विन्यस्त किया जा सकता है साथ काम करने के लिए बाहरी वेब सर्वर (अपाचे, Xitami, LightTPD); स्क्रिप्ट का उपयोग कर सकते हैं सभी डेटाबेस के लिए जो एक पायथन एपीआई मौजूद है (sqlite, mySql, PostGreSQL, ZODB, आदि)

    एक नया आवेदन, InstantSite, ही प्रदान की जाती है के लिए आसानी से बनाने और संपादित MySQL डेटाबेस और स्क्रिप्ट जनरेट संभाल कि सामान्य CRUD संचालन पर डेटाबेस तालिकाओं. पर एक नज़र रखना ऑनलाइन फ़्लैश डेमो

    बनाने के लिए गतिशील पृष्ठों, आप सभी की जरूरत है पता करने के लिए HTML और अजगर है । आप के बीच विकल्प नहीं है अलग अलग तरीकों के साथ उन्हें मिश्रण.

    संक्षेप में :

    · आप का उपयोग कर सकते हैं साधारण अजगर लिपियों

    · Karrigell सेवाओं रहे हैं, अजगर लिपियों जहां प्रत्येक समारोह से मेल खाता एक अलग यूआरएल : foo.एस/पट्टी से मेल खाता है, समारोह() स्क्रिप्ट में foo.एस (यदि कोई कार्य निर्दिष्ट किया जाता है, समारोह सूचकांक() का इस्तेमाल किया जाता है)

    · HTML के अंदर अजगर का एक और रूप है अजगर स्क्रिप्ट है, जहां लाइनों की शुरुआत के द्वारा एक स्ट्रिंग कर रहे हैं ब्राउज़र के लिए भेजा के रूप में अगर वहाँ थे एक प्रिंट स्टेटमेंट

    · अजगर के अंदर HTML की तरह बहुत ज्यादा है PHP या JSP, HTML पृष्ठों के साथ पायथन कोड डाला टैग के बीच

    · आप का उपयोग कर सकते हैं सादे CGI लिपियों : दस्तावेज़ीकरण देखें के लिए cgi मॉड्यूल में मानक प्रलेखन

    · अजगर कोड में मार डाला है एक "स्वच्छ" नामस्थान सहित HTTP पर्यावरण, फार्म क्षेत्रों और कस्टम अपवाद है । जब एक प्रपत्र भी शामिल है , क्षेत्र के मूल्य में उपलब्ध है स्क्रिप्ट के नाम के तहत _myfield

    प्रमाणीकरण के लिए और सत्र के दो कार्य (हैरानगी नाम प्रमाणीकरण और सत्र) में इस्तेमाल किया जा सकता लिपियों. प्रमाणीकरण लेता है एक प्रमाणीकरण परीक्षण समारोह के रूप में पहला तर्क है, जो चेक AUTH_USER और AUTH_PASSWORD स्वीकार कर रहे हैं. सत्र() का उपयोग किया है करने के लिए प्रारंभ या पुनर्प्राप्त एक सत्र वस्तु है, जो करने के लिए गुण सेट किया जा सकता है या पढ़ा है

    में शामिल हैं(file_or_script) समारोह में सम्मिलित करता है के उत्पादन स्क्रिप्ट या फाइल के अंदर उत्पादन के वर्तमान स्क्रिप्ट ; यह उपयोगी है के लिए शीर्ष लेख या पाद लेख के उदाहरण के लिए. यदि यह एक स्क्रिप्ट निष्पादित है वर्तमान में नाम स्थान है ।

  • Karrigell is a flexible Python web framework, with a clear and intuitive syntax.

    Karrigell is independent from any ORM, database or templating engine, and will let the programmer choose between a variety of coding styles.

    The package includes a powerful built-in web server, so there's no need to download, install and configure a separate one, and a pure-Python database engine, PyDbLite, which is used for the demos.

    Karrigell can be configured to work with external web servers (Apache, Xitami, LightTPD); the scripts can use all the databases for which a Python API exists (sqlite, mySql, PostGreSQL, ZODB, etc)

    A new application, InstantSite, is provided to easily create and edit MySQL databases and generate scripts that handle the usual CRUD operations on database tables. Take a look at the online Flash demo

    To create dynamic pages, all you need to know is HTML and Python. You have the choice between different ways of mixing them.

    In short :

    · You can use ordinary Python scripts

    · Karrigell services are Python scripts where each function matches a different URL : foo.ks/bar matches the function bar() in the script foo.ks (if no function is specified, the function index() is used)

    · HTML inside Python is another form of Python script, where lines beginning by a string are sent to the browser as if there were a print statement

    · Python Inside HTML is very much like PHP or JSP, HTML pages with Python code inserted between the tags

    · You can use plain CGI scripts : see the documentation for the cgi module in the standard documentation

    · Python code is executed in a "clean" namespace including HTTP environment, form fields and custom exceptions. When a form includes the field , the value is available in the script under the name _myfield

    For authentication and session, two functions (unsurprisingly named Authentication and Session) can be used in scripts. Authentication takes an authentication test function as first argument, which checks if the AUTH_USER and AUTH_PASSWORD are accepted. Session() is used to initialize or retrieve a session object to which attributes can be set or read

    The Include(file_or_script) function inserts the output of the script or file inside the output of current script ; this is useful for headers or footers for instance. If it's a script it is executed in the current namespace.