معرفی شرکت ها


SimpleFixedWidth-0.0.2


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

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

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

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

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

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

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

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

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

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

مشاهده بیشتر

توضیحات

A simple python library for quickly parsing records in a fixed width format.
ویژگی مقدار
سیستم عامل OS Independent
نام فایل SimpleFixedWidth-0.0.2
نام SimpleFixedWidth
نسخه کتابخانه 0.0.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده John Glasgow
ایمیل نویسنده jglasgow@northampton.edu
آدرس صفحه اصلی https://github.com/N-C-C/simplefixedwidth
آدرس اینترنتی https://pypi.org/project/SimpleFixedWidth/
مجوز -
## SimpleFixedWidth ## _A simple and very lightweight library for working with fixed width files._ #### Fixed_Width_Spec #### class **Field** Signature ` Field(number: int, name: int, string: bool, size:int)` * number: int (Positional identifier for the field) * name: str (Name of the field) * string: bool (Indicates if the field is a string, if false it is numeric) * size: int (Length of the field) Example `Field(5, 'Name', True, 30)` class **RecordType** Signature ` RecordType(name="", fields=[])` * name: str (Name of the RecordType, if you have more than one) * fields: list (List of fields for the specification tied to the RecordType) * field_widths: tuple (Returns tuple of the widths from the fields) * field_names: list (Returns list of the field names) #### Fixed_Width_Record #### function **get_fields** Slices a string 's' in segments 'args' wide. Negative widths represent ignored padding fields. **Parameters** * s: string * args: list of widths for the string, negative numbers are skipped **Returns** string 's' in a list, minus the skipped fields function **get_line** Takes a string and extracts the record identifier if it exists. **Parameters** * string (String to be sliced into a list of fields) * rec_type_start=-1 (If the string contains a record identifier, this will start to parse it out) * rec_type_end=-1 (If the string contains a record identifier, this will end to parse it out) **Returns** Tuple of the record identifier and the string it was in.


نحوه نصب


نصب پکیج whl SimpleFixedWidth-0.0.2:

    pip install SimpleFixedWidth-0.0.2.whl


نصب پکیج tar.gz SimpleFixedWidth-0.0.2:

    pip install SimpleFixedWidth-0.0.2.tar.gz