Skip to content

Commit be4d28b

Browse files
author
Greg Taylor
committed
Lots of support docs, getting epydoc stuff settled.
1 parent d6243e7 commit be4d28b

File tree

11 files changed

+779
-1
lines changed

11 files changed

+779
-1
lines changed

LICENSE.txt

Lines changed: 621 additions & 0 deletions
Large diffs are not rendered by default.

README.txt

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
Python Fedex SOAP API Module (colormath) by Gregory Taylor
2+
http://code.google.com/p/python-fedex/
3+
4+
What is it?
5+
-----------
6+
A light wrapper around Fedex's Webservice Soap API.
7+
8+
Requirements
9+
------------
10+
The only dependency is the suds SOAP module, which is available at:
11+
12+
https://fedorahosted.org/suds/
13+
14+
You may also use easy_install or pip to install from PyPi.
15+
16+
Installation
17+
------------
18+
As root/admin on your machine:
19+
python setup.py install
20+
21+
Documentation
22+
-------------
23+
For documentation, see the project webpage at:
24+
25+
http://code.google.com/p/python-fedex/
26+
27+
There are also a lot of useful examples under the examples directory within
28+
this directory.
29+
30+
Support
31+
-------
32+
Head over to http://code.google.com/p/python-fedex/issues/list
33+
and submut an issue if you have any problems or questions.
34+
35+
Legal Mumbo Jumbo
36+
-----------------
37+
Copyright (C) 2009 Gregory Taylor
38+
39+
This program is free software: you can redistribute it and/or modify
40+
it under the terms of the GNU General Public License as published by
41+
the Free Software Foundation, either version 3 of the License, or
42+
(at your option) any later version.
43+
44+
This program is distributed in the hope that it will be useful,
45+
but WITHOUT ANY WARRANTY; without even the implied warranty of
46+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47+
GNU General Public License for more details.
48+
49+
You should have received a copy of the GNU General Public License
50+
along with this program. If not, see <http://www.gnu.org/licenses/>.

__init__.py

Whitespace-only changes.

fedex/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@
3131
If you have any questions, problems, ideas, or patch submissions, please visit
3232
our U{Google Code project<http://code.google.com/p/python-fedex/>} and enter
3333
an issue in the U{Issue Tracker<http://code.google.com/p/python-fedex/issues/list>}.
34-
"""
34+
"""
35+
VERSION = '0.1'

setup.py

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
#!/usr/bin/env python
2+
"""
3+
python-fedex
4+
Copyright (C) 2009 Gregory Taylor
5+
6+
This program is free software: you can redistribute it and/or modify
7+
it under the terms of the GNU General Public License as published by
8+
the Free Software Foundation, either version 3 of the License, or
9+
(at your option) any later version.
10+
11+
This program is distributed in the hope that it will be useful,
12+
but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
GNU General Public License for more details.
15+
16+
You should have received a copy of the GNU General Public License
17+
along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
"""
19+
from distutils.core import setup
20+
from . import fedex
21+
22+
LONG_DESCRIPTION = \
23+
"""A light wrapper around Fedex's Web Services SOAP API using suds."""
24+
25+
CLASSIFIERS = [
26+
'Development Status :: 4 - Beta',
27+
'Intended Audience :: Developers',
28+
'License :: OSI Approved :: GNU General Public License (GPL)',
29+
'Natural Language :: English',
30+
'Operating System :: OS Independent',
31+
'Programming Language :: Python',
32+
'Topic :: Software Development :: Libraries :: Python Modules'
33+
]
34+
35+
KEYWORDS = 'fedex soap suds wrapper'
36+
37+
setup(name='fedex',
38+
version=fedex.VERSION,
39+
description='Fedex Web Services API wrapper.',
40+
long_description = LONG_DESCRIPTION,
41+
author='Gregory Taylor',
42+
author_email='gtaylor@l11solutions.com',
43+
url='http://code.google.com/p/python-fedex/',
44+
download_url='http://pypi.python.org/pypi/fedex/',
45+
packages=['fedex'],
46+
platforms = ['Platform Independent'],
47+
license = 'GPLv3',
48+
classifiers = CLASSIFIERS,
49+
keywords = KEYWORDS,
50+
requires = ['suds']
51+
)

test_runner.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env python
2+
"""
3+
This module is used to run the test suite in its entirety. Make sure to run
4+
this before any release and after patch submissions.
5+
"""
6+
import unittest
7+
from tests import t_ship_service
8+
9+
# A list of the modules under the tests package that should be ran.
10+
test_modules = [t_ship_service]
11+
12+
# Fire off all of the tests.
13+
for mod in test_modules:
14+
suite = unittest.TestLoader().loadTestsFromModule(mod)
15+
unittest.TextTestRunner(verbosity=2).run(suite)

tests/__init__.py

Whitespace-only changes.

tests/common.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""
2+
This module contains common definitions and functions used within the
3+
test suite.
4+
"""
5+
from fedex.config import FedexConfig
6+
7+
def get_test_config():
8+
"""
9+
Returns a basic FedexConfig to test with.
10+
"""
11+
return FedexConfig(key='ZyNQQFdcxUATOx9L',
12+
password='GtngmKzs4Dk4RYmrlAjrLykwi',
13+
account_number='510087780',
14+
meter_number='118501898')

0 commit comments

Comments
 (0)