Permalink
Browse files

added gpl headers and COPYING file

  • Loading branch information...
1 parent e89e353 commit b309670583770dfc866de9c057e7d97eee91de0a @tmelz committed Apr 14, 2011
View
674 COPYING

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,3 +1,18 @@
+# This file is part of reddit_api.
+#
+# reddit_api is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# reddit_api is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with reddit_api. If not, see <http://www.gnu.org/licenses/>.
+
from reddit import Reddit
from reddit import Reddit
from comment import Comment
View
@@ -1,3 +1,18 @@
+# This file is part of reddit_api.
+#
+# reddit_api is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# reddit_api is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with reddit_api. If not, see <http://www.gnu.org/licenses/>.
+
class APIException(Exception):
"""Base exception class for these API bindings."""
pass
View
@@ -1,3 +1,18 @@
+# This file is part of reddit_api.
+#
+# reddit_api is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# reddit_api is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with reddit_api. If not, see <http://www.gnu.org/licenses/>.
+
from urls import urls
class RedditObject(object):
View
@@ -1,3 +1,18 @@
+# This file is part of reddit_api.
+#
+# reddit_api is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# reddit_api is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with reddit_api. If not, see <http://www.gnu.org/licenses/>.
+
from features import Voteable, Deletable
from base_objects import RedditContentObject
from util import limit_chars
View
@@ -1,3 +1,18 @@
+# This file is part of reddit_api.
+#
+# reddit_api is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# reddit_api is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with reddit_api. If not, see <http://www.gnu.org/licenses/>.
+
from settings import WAIT_BETWEEN_CALL_TIME
from urls import urls
from functools import wraps
View
@@ -1,3 +1,18 @@
+# This file is part of reddit_api.
+#
+# reddit_api is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# reddit_api is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with reddit_api. If not, see <http://www.gnu.org/licenses/>.
+
from decorators import require_login
class Saveable(object):
View
@@ -1,3 +1,18 @@
+# This file is part of reddit_api.
+#
+# reddit_api is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# reddit_api is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with reddit_api. If not, see <http://www.gnu.org/licenses/>.
+
from decorators import require_login, sleep_after
from util import memoize, urljoin
from settings import DEFAULT_CONTENT_LIMIT
View
@@ -1,3 +1,18 @@
+# This file is part of reddit_api.
+#
+# reddit_api is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# reddit_api is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with reddit_api. If not, see <http://www.gnu.org/licenses/>.
+
from base_objects import RedditContentObject
from urls import urls
View
@@ -1,3 +1,18 @@
+# This file is part of reddit_api.
+#
+# reddit_api is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# reddit_api is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with reddit_api. If not, see <http://www.gnu.org/licenses/>.
+
import urllib
import urllib2
import cookielib
View
@@ -1,3 +1,18 @@
+# This file is part of reddit_api.
+#
+# reddit_api is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# reddit_api is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with reddit_api. If not, see <http://www.gnu.org/licenses/>.
+
import itertools
import unittest
import warnings
View
@@ -1,3 +1,18 @@
+# This file is part of reddit_api.
+#
+# reddit_api is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# reddit_api is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with reddit_api. If not, see <http://www.gnu.org/licenses/>.
+
from base_objects import RedditContentObject
from helpers import _get_section
from util import limit_chars
View
@@ -1,4 +1,19 @@
+# This file is part of reddit_api.
+#
+# reddit_api is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# reddit_api is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with reddit_api. If not, see <http://www.gnu.org/licenses/>.
# How many results to retrieve by default when making content calls
+
DEFAULT_CONTENT_LIMIT = 25
# Seconds to wait between calls, see http://code.reddit.com/wiki/API
# specifically "In general, and especially for crawlers, make fewer than one
View
@@ -1,3 +1,18 @@
+# This file is part of reddit_api.
+#
+# reddit_api is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# reddit_api is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with reddit_api. If not, see <http://www.gnu.org/licenses/>.
+
from base_objects import RedditContentObject
from features import Saveable, Voteable, Deletable
from urls import urls
View
@@ -1,3 +1,18 @@
+# This file is part of reddit_api.
+#
+# reddit_api is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# reddit_api is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with reddit_api. If not, see <http://www.gnu.org/licenses/>.
+
from base_objects import RedditContentObject
from helpers import _modify_relationship, _get_sorter
from util import limit_chars
View
@@ -1,3 +1,18 @@
+# This file is part of reddit_api.
+#
+# reddit_api is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# reddit_api is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with reddit_api. If not, see <http://www.gnu.org/licenses/>.
+
from util import urljoin
class URLDict(object):
View
@@ -1,5 +1,21 @@
+# This file is part of reddit_api.
+#
+# reddit_api is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# reddit_api is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with reddit_api. If not, see <http://www.gnu.org/licenses/>.
+
import time
import urlparse
+from settings import CACHE_TIMEOUT
from functools import wraps
@@ -11,7 +27,7 @@ class memoize(object):
For RedditContentObject methods, this means removal by URL, provided by the
is_stale method.
"""
- TIMEOUT = 30 # seconds
+ TIMEOUT = CACHE_TIMEOUT
def __init__(self, func):
wraps(func)(self)

0 comments on commit b309670

Please sign in to comment.