From e52afe98a85171b595afff481c74d72d063becab Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Mon, 23 Jun 2014 18:54:28 -0500 Subject: [PATCH] Least useful initial commit ever --- LICENSE | 13 +++++++++++++ README.rst | 0 rfc3986/__init__.py | 32 ++++++++++++++++++++++++++++++++ rfc3986/misc.py | 9 +++++++++ 4 files changed, 54 insertions(+) create mode 100644 LICENSE create mode 100644 README.rst create mode 100644 rfc3986/__init__.py create mode 100644 rfc3986/misc.py diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..72ce24c --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ +Copyright 2014 Ian Cordasco, Rackspace + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..e69de29 diff --git a/rfc3986/__init__.py b/rfc3986/__init__.py new file mode 100644 index 0000000..d017bed --- /dev/null +++ b/rfc3986/__init__.py @@ -0,0 +1,32 @@ +# -*- coding: utf-8 -*- +# Copyright (c) 2014 Rackspace +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +""" +rfc3986 +======= + +An implementation of semantics and validations described in RFC 3986. See +http://rfc3986.rtfd.org/ for documentation. + +:copyright: (c) 2014 Rackspace +:license: Apache v2.0, see LICENSE for details +""" + +__title__ = 'rfc3986' +__author__ = 'Ian Cordasco' +__author_email__ = 'ian.cordasco@rackspace.com' +__license__ = 'Apache v2.0' +__copyright__ = 'Copyright 2014 Rackspace' +__version__ = '0.0.0' diff --git a/rfc3986/misc.py b/rfc3986/misc.py new file mode 100644 index 0000000..dcf440d --- /dev/null +++ b/rfc3986/misc.py @@ -0,0 +1,9 @@ +# -*- coding: utf-8 -*- + +# Delimiters of generic URI components, see +# http://tools.ietf.org/html/rfc3986#section-3 +GENERIC_DELIMITERS = (":", "/", "?", "#", "[", "]", "@") + +# Delimiters of subcomponents +SUB_DELIMITERS = ("!", "$", "&", "'", "(", ")", "*", "+", ",", ";", "=") +RESERVED_CHARS = general_delimiters + sub_delimiters