تکجوی

مرجعی برای آخرین مطالب طراحی سایت فول استک پایتون/جنگو

تکجوی

مرجعی برای آخرین مطالب طراحی سایت فول استک پایتون/جنگو

همیشا وقتی یه مطلبی رو نیاز دارم، اول مسلما سرچ می کنم. اما گاهی اوقات یه مطلب مفیدی برای طراحی سایت رو می خونم، یا جزئیاتش رو فراموش می کنم، یا آدرس سایتش رو گم می کنم و بعدا حتی شده دو، سه روز دنبالش می گردم تا مجددا پیداش کنم. این وبلاگ کمک می کنه دیگه دنبال مطالب تکراری نگردم و تو کارم صرفه جویی زیادی بشه. ممکنه این مطالب دسته بندی شده، به درد شما هم بخوره.

طبقه بندی موضوعی
بایگانی

۱۷ مطلب با موضوع «python» ثبت شده است

  • ۰
  • ۰

https://code.tutsplus.com/tutorials/behavior-driven-development-in-python--net-26547

Behavior-Driven Development (which we will now refer to as "BDD") follows on from the ideas and principles introduced in Test-Driven Development. The key points of writing tests before code really apply to BDD as well. The idea is to not only test your code at the granular level with unit tests, but also test your application end to end, using acceptance tests. We will introduce this style of testing with the use of the Lettuce testing framework.

  • محمد خسروی زاده
  • ۰
  • ۰

https://pybee.org/news/buzz/2017-google-summer-of-code-final-report-dayanne-fernandes/

After almost 4 months of work on Google Summer of Code 2017, finally I'm completing my proposal. Every widget migration and every commit/PR/issue/discussion with my mentors about Cricket , Toga and rubicon-objc were detailed on the Issue 58.

"Eating your own dog food"

The best way to show that a product is reliable to the customers is use it. So, the way to show that Toga is an effective tool to build a GUI is to build a complete application using it.

Cricket is a graphical tool that helps you run your test suites. Its current version is implemented using #Tkinter as the main GUI framework. So, why not test Toga inside of another product from BeeWare? That's what I have acomplished during my GSoC work.

  • محمد خسروی زاده
  • ۰
  • ۰

http://www.bogotobogo.com/python/python_redis_with_python.php

Redis with Python

In order to use #Redis with Python, we will need a Python Redis client.

In following sections, we will demonstrate the use of redis-py, a Redis Python Client.

redis-py requires a running Redis server. See Redis Install for installation.

  • محمد خسروی زاده
  • ۰
  • ۰

PySide

Welcome to the PySide documentation wiki page. The PySide project provides LGPL-licensed Python bindings for the Qt. It also includes complete toolchain for rapidly generating bindings for any Qt-based C++ class hierarchies. PySide Qt bindings allow both free open source and proprietary software development and ultimately aim to support Qt platforms.

  • محمد خسروی زاده
  • ۰
  • ۰

https://www.tutorialspoint.com/python/python_database_access.htm


The Python standard for database interfaces is the Python DB-API. Most Python database interfaces adhere to this standard.

You can choose the right database for your application. Python Database API supports a wide range of database servers such as

  • محمد خسروی زاده
  • ۰
  • ۰

http://www.wikipython.com/other-concepts/anatomy-of-a-class/


It seems obvious, but note that you must define a class before you use it.


When you create a class, it establishes its own namespace and all its own local variables (except global definitions) exist only inside that namespace. They do not interact with other variables of the same name outside it. This leads us to one very important “feature” of classes that you need to know. If you use the same word to designate some specific value both inside and outside the class blueprint, the instance value will take precedence when you try to use that value.

  • محمد خسروی زاده
  • ۰
  • ۰

Mixing static, class and abstract methods

When building classes and inheritances, the time will come where you will have to mix all these methods decorators. So here's some tips about it.

Keep in mind that declaring a method as being abstract, doesn't freeze the prototype of that method. That means that it must be implemented, but it can be implemented with any argument list.

  • محمد خسروی زاده
  • ۰
  • ۰

https://stackoverflow.com/questions/3224268/python-unicode-encode-error

I'm reading and parsing an Amazon XML file and while the XML file shows a ' , when I try to print it I get the following error:


'ascii' codec can't encode character u'\u2019' in position 16: ordinal not in range(128) 
  • محمد خسروی زاده
  • ۰
  • ۰

http://devarea.com/8-python-modules-for-files-handling/#.Wlu2RyehU8o

Python has input/output features which are very easy to use. Files are accessed through file objects and you can open, read, write and close files using a very simple and easy to use functions from the standard library. To manage files and deal with special file formats (xml, json..) python provides special packages that make the developer life ever easier.

  • محمد خسروی زاده
  • ۰
  • ۰
https://www.kaggle.com/

Kaggle is a platform for data science competitions.We help you solve difficult problems, recruit strong teams, and amplify the power of your data science talent.
  • محمد خسروی زاده