Skip to content

Commit

Permalink
Added apache license
Browse files Browse the repository at this point in the history
  • Loading branch information
theduderog committed Feb 1, 2011
1 parent d117965 commit 966a1a2
Show file tree
Hide file tree
Showing 18 changed files with 257 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -5,7 +5,7 @@
author = "Roger Hoover", author = "Roger Hoover",
author_email = "roger.hoover@gmail.com", author_email = "roger.hoover@gmail.com",
description = "No nonsense Python STOMP client", description = "No nonsense Python STOMP client",
license = 'BSD', license = 'Apache License 2.0',
packages = find_packages(), packages = find_packages(),
py_modules=["stompest"], py_modules=["stompest"],
include_package_data = True, include_package_data = True,
Expand Down
16 changes: 15 additions & 1 deletion stompest/async.py
@@ -1,5 +1,19 @@
""" """
Twisted STOMP classes. Twisted STOMP client
Copyright 2011 Mozes, Inc.
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.
""" """
import sys import sys
import logging import logging
Expand Down
14 changes: 14 additions & 0 deletions stompest/error.py
@@ -1,4 +1,18 @@
"""
Copyright 2011 Mozes, Inc.
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.
"""
class StompError(Exception): class StompError(Exception):
"""Base class for STOMP errors """Base class for STOMP errors
""" """
Expand Down
15 changes: 15 additions & 0 deletions stompest/examples/simple/consumer.py
@@ -1,3 +1,18 @@
"""
Copyright 2011 Mozes, Inc.
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.
"""
from stompest.simple import Stomp from stompest.simple import Stomp


QUEUE = '/queue/simpleTest' QUEUE = '/queue/simpleTest'
Expand Down
15 changes: 15 additions & 0 deletions stompest/examples/simple/producer.py
@@ -1,3 +1,18 @@
"""
Copyright 2011 Mozes, Inc.
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.
"""
from stompest.simple import Stomp from stompest.simple import Stomp


QUEUE = '/queue/simpleTest' QUEUE = '/queue/simpleTest'
Expand Down
15 changes: 15 additions & 0 deletions stompest/examples/twisted/consumer.py
@@ -1,3 +1,18 @@
"""
Copyright 2011 Mozes, Inc.
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.
"""
import logging import logging
import simplejson import simplejson
from twisted.internet import reactor, defer from twisted.internet import reactor, defer
Expand Down
15 changes: 15 additions & 0 deletions stompest/examples/twisted/producer.py
@@ -1,3 +1,18 @@
"""
Copyright 2011 Mozes, Inc.
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.
"""
import logging import logging
import simplejson import simplejson
from twisted.internet import reactor, defer from twisted.internet import reactor, defer
Expand Down
15 changes: 15 additions & 0 deletions stompest/examples/twisted/transformer.py
@@ -1,3 +1,18 @@
"""
Copyright 2011 Mozes, Inc.
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.
"""
import logging import logging
import simplejson import simplejson
from twisted.internet import reactor, defer from twisted.internet import reactor, defer
Expand Down
15 changes: 15 additions & 0 deletions stompest/parser.py
@@ -1,3 +1,18 @@
"""
Copyright 2011 Mozes, Inc.
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.
"""
import stomper import stomper
from stompest.error import StompFrameError from stompest.error import StompFrameError


Expand Down
15 changes: 15 additions & 0 deletions stompest/simple.py
@@ -1,3 +1,18 @@
"""
Copyright 2011 Mozes, Inc.
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.
"""
import socket import socket
import select import select
import stomper import stomper
Expand Down
15 changes: 15 additions & 0 deletions stompest/tests/async_stomp_client_integration_test.py
@@ -1,3 +1,18 @@
"""
Copyright 2011 Mozes, Inc.
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.
"""
import logging import logging
import stomper import stomper
from twisted.trial import unittest from twisted.trial import unittest
Expand Down
15 changes: 15 additions & 0 deletions stompest/tests/async_stomp_client_test.py
@@ -1,3 +1,18 @@
"""
Copyright 2011 Mozes, Inc.
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.
"""
import logging import logging
import stomper import stomper
from twisted.trial import unittest from twisted.trial import unittest
Expand Down
15 changes: 15 additions & 0 deletions stompest/tests/broker_simulator.py
@@ -1,3 +1,18 @@
"""
Copyright 2011 Mozes, Inc.
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.
"""
import logging import logging
import stomper import stomper
from twisted.internet.protocol import Protocol, Factory from twisted.internet.protocol import Protocol, Factory
Expand Down
15 changes: 15 additions & 0 deletions stompest/tests/simple_stomp_integration_test.py
@@ -1,3 +1,18 @@
"""
Copyright 2011 Mozes, Inc.
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.
"""
import unittest import unittest


from stompest.simple import Stomp from stompest.simple import Stomp
Expand Down
15 changes: 15 additions & 0 deletions stompest/tests/simple_stomp_test.py
@@ -1,3 +1,18 @@
"""
Copyright 2011 Mozes, Inc.
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.
"""
import unittest import unittest
from mock import Mock from mock import Mock


Expand Down
15 changes: 15 additions & 0 deletions stompest/tests/stomp_parser_test.py
@@ -1,3 +1,18 @@
"""
Copyright 2011 Mozes, Inc.
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.
"""
import unittest import unittest


import stomper import stomper
Expand Down
15 changes: 15 additions & 0 deletions stompest/tests/util_test.py
@@ -1,3 +1,18 @@
"""
Copyright 2011 Mozes, Inc.
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.
"""
import unittest import unittest
from stompest.util import filterReservedHeaders from stompest.util import filterReservedHeaders


Expand Down
18 changes: 17 additions & 1 deletion stompest/util.py
@@ -1,4 +1,20 @@
"""Util functions """
Util functions
Copyright 2011 Mozes, Inc.
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.
""" """
from copy import deepcopy from copy import deepcopy


Expand Down

0 comments on commit 966a1a2

Please sign in to comment.