Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:jayvdb:branches:devel:languages:python:misc
python-parcon
python-parcon.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-parcon.spec of Package python-parcon
# # spec file for package python-parcon # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: python-parcon Version: 0.1.24 Release: 0 Url: http://www.opengroove.org/parcon/ Summary: Parser/formatter library that provides informative error messages License: LGPL-2.0+ Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/p/parcon/parcon-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-devel %if 0%{?suse_version} %py_requires %if 0%{?suse_version} > 1110 BuildArch: noarch %endif %endif %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %description Parcon is a parser combinator library. It can be used for parsing both normal text and binary data. It's designed to be easy to use and to provide informative error messages. Pargen, which is provided as a submodule of Parcon, is a formatter combinator library. It's much the opposite of Parcon: while Parcon is used to parse text into various objects, Pargen is used to format objects into text. As an example, if you wanted to reimplement Python's json module, you would use Parcon to implement json.loads and Pargen to implement json.dumps. Static, which is also provided as a submodule of Parcon, is a static typing library and Python object pattern library. It lets you build patterns that match Python objects based on their type, their attributes, certain properties such as whether or not the object is a sequence, the types that make up the object's values if the object is a sequence, and so on. All of the classes, and most of the functions, in Parcon are comprehensively documented. The best place to look for help is in Parcon's module documentation. Pargen's classes and functions and Static's classes and functions are also documented, though not quite as well as Parcon's are at present. %prep %setup -q -n parcon-%{version} rm docs/.gitignore %build python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} %files %defattr(-,root,root,-) %doc README.txt docs %{python_sitelib}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor