معرفی شرکت ها


esu-3.0.2


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Enjoy the flexibility of structs with esu!
ویژگی مقدار
سیستم عامل -
نام فایل esu-3.0.2
نام esu
نسخه کتابخانه 3.0.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Mark Torok
ایمیل نویسنده -
آدرس صفحه اصلی http://github.com/torokmark/esu
آدرس اینترنتی https://pypi.org/project/esu/
مجوز Apache License 2.0
# Welcome to Esu Struct! [![Build Status](https://travis-ci.org/torokmark/esu.svg?branch=master)](https://travis-ci.org/torokmark/esu) [![Documentation Status](https://readthedocs.org/projects/esu/badge/?version=latest)](https://esu.readthedocs.io/en/latest/) [![PyPI](https://img.shields.io/pypi/v/esu.svg?color=blue)](https://pypi.org/project/esu/) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/esu.svg)](https://github.com/torokmark/esu) [![PyPI - License](https://img.shields.io/github/license/torokmark/esu)](https://github.com/torokmark/esu/blob/master/LICENSE.md) Enjoy the flexibility of structs with *esu*! You can create types on the fly with previously declared fields and methods by using *esu struct*. The created type additionally contains methods for equation, hashing and string representation. ### Install ```sh pip install esu ``` ### Usage #### Struct ```py from esu import Struct, OpenStruct Customer = Struct( 'Customer', 'name', 'age', methods={ 'greeting': lambda self: "Hello {}".format(self.__dict__['name']) }) dave = Customer() dave.name = 'Dave' dave.age = 25 dave.greeting() # => Hello Dave anna = Customer('Anna', 28) anna.greeting() # => Hello Anna ``` #### OpenStruct ```py bob = OpenStruct() bob.name = Bob bob.age = 54 print(bob) # => [name=Bob, age=54] su = OpenStruct({'name': 'Su', 'gender': 'female'}) su.employed = True print(su) # => [name=Su, gender=female, employed=True] ``` ### Documentation For further information, read the documentation that can be found: [https://esu.readthedocs.io](https://esu.readthedocs.io) ### Contribution 1. Fork it! 2. Make your changes! 3. Send a PR!


زبان مورد نیاز

مقدار نام
>=3.5 Python


نحوه نصب


نصب پکیج whl esu-3.0.2:

    pip install esu-3.0.2.whl


نصب پکیج tar.gz esu-3.0.2:

    pip install esu-3.0.2.tar.gz