Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/praw-dev/asyncpraw

Async PRAW, an abbreviation for "Asynchronous Python Reddit API Wrapper", is a python package that allows for simple access to Reddit's API.
https://github.com/praw-dev/asyncpraw

Merge branch 'mishk/master'

572783c36552aa00b683ba393fb7b16485d1951e authored about 14 years ago by Timothy Mellor <mellort@mellort-laptop.(none)>
README updated.

2883e1b7a6a5e90d1e734e1f84e400e5b18f6f72 authored about 14 years ago by JB <[email protected]>
ignore backup files

6f6f734b72c79eb46d192313401fbc7c06df750c authored about 14 years ago by Hazim Gazov <[email protected]>
update the readme to note that submission deleting is now supported

75abdbb9f6c8a8b632f0437fa44ce74070fec0c7 authored about 14 years ago by Hazim Gazov <[email protected]>
add preliminary support for deleting submissions

c34aa2a153a8438a057adc2ae48b77b5c7c8ddef authored about 14 years ago by Hazim Gazov <[email protected]>
Fix a couple of speeling errors in the readme

4508c868d974509659d8adb551b1dd90a01192b6 authored about 14 years ago by Hazim Gazov <[email protected]>
Think this fixes the unicode issues.

2bc2a2ea6a680c1cabbdc9c61a0101a8c1b71495 authored about 14 years ago by JB <[email protected]>
README bump.

938ef6c496a683ce77222e7f73ef56b0b53e6406 authored about 14 years ago by JB <[email protected]>
Fixed limit=None bug.

4ec38e9409b73d6e5c9489a5cf3d648449b4facb authored about 14 years ago by JB <[email protected]>
Moved slightly towards proper package structure, though still being sloppy.

99e02a461b12544e006511a4f4f43dd5e5cb3820 authored about 14 years ago by JB <[email protected]>
Removed old unused function. Fixed info bug.

8b32f577e111506b2a575dd592da2243803d7d0c authored about 14 years ago by JB <[email protected]>
Minor remove old constant.

f7f81bb7adfc2bcabb216cc1da0e0c3e8eba6093 authored about 14 years ago by JB <[email protected]>
Consolidated save

19c8b2f19ae5905913bf607637c0b90e0d4b07d8 authored about 14 years ago by JB <[email protected]>
Moved vote into Voteable

cb6042a6ece0459aee68e92120a3be973796377c authored about 14 years ago by JB <[email protected]>
Removed @urls in favor of new urls.py.

5c0820e23b9ebe5d5c93511c8a24b2a665e47b8d authored about 14 years ago by JB <[email protected]>
Added urls.py.

ffbe30099baeac3d986f979c2bdf71851e1d100b authored about 14 years ago by JB <[email protected]>
Changed to util.urljoin in tests.

4c878d4e55fa880757c8fb6be23e5c4b2e83e596 authored about 14 years ago by JB <[email protected]>
Reordered util functions. Fixed generator bug.

ccc122d95e309814639bfc9b2378c39ce0ecbc4e authored about 14 years ago by JB <[email protected]>
Some code reworking, and changed over to new memoize.

a145a8f6164504ce18f85885eb350b490df1e987 authored about 14 years ago by JB <[email protected]>
Started memoize tests too.

f7fa1cab9f4c1ad845f6646bdda089b9ea0b1060 authored about 14 years ago by JB <[email protected]>
Rewrote memoize.

e14867e295209f566fbc05354cba74e601b4f81f authored about 14 years ago by JB <[email protected]>
More tests.

d58eb930d07db193414113cb2fd5be2807ff291d authored about 14 years ago by MY <[email protected]>
Added warning for info on self links.

b138e9275a78aa2f21743676eea124cf2f75dcb7 authored about 14 years ago by MY <[email protected]>
Some more tests.

4ada7c01ca346cd68433536c225f9b4e5f7334ac authored about 14 years ago by JB <[email protected]>
.gitignore bump

1069d51b0f3b49a083653bdd57b195177487df92 authored about 14 years ago by JB <[email protected]>
Reply fix.

13a90b108b62f6f737be8694908436635677c708 authored about 14 years ago by Mishk <[email protected]>
Few more tests.

6cdc03e33dc845e0a3c218124ddc2bf25573b3aa authored about 14 years ago by Mishk <[email protected]>
.gitignore bump

601f0e439d197bd612d3277f8645de8ba1351a70 authored about 14 years ago by Mishk <[email protected]>
First couple of dumb tests.

62e87e215f4da9172359df50a0237e87370fb0cb authored about 14 years ago by JB <[email protected]>
Fixed unsave. Started fixing nested comments. Added __eq__

e983b1dc268c053dfd6503abf3614eb0ae8023ac authored about 14 years ago by JB <[email protected]>
Added util containing memoize and urljoin.

ec950e11318c578f0bacb2d470391a68024c6ad9 authored about 14 years ago by JB <[email protected]>
Require user agent for Reddit() objects. DEBUG is on until major work is done (which enables a default user agent).

d65adcf7e0361528cf9cbdd5b59047e7df2d3d73 authored about 14 years ago by JB <[email protected]>
Minor constant cleanup.

9f4b980eebee9e84134dec626fcc86629ce6f9b0 authored about 14 years ago by JB <[email protected]>
Let's try that again. urljoin fix. (and unittests forthcoming...)

116bf0fd3ab519680f73de0b18402089f949afff authored about 14 years ago by JB <[email protected]>
Decorator fix.

8eef8c3ad53a4a6c0bf178cb3e36407193a1351f authored about 14 years ago by MY <[email protected]>
Uh, whoops. We were swallowing the AttributeError in __getattr__ by mistake.

21ce3adaf5270013c1f8f452745cd90aa98f01f0 authored about 14 years ago by MY <[email protected]>
Minor cleanup.

22fae043b30152b690478840e43c618cb4020257 authored about 14 years ago by MY <[email protected]>
test commit

4e06549b69f4ce5be772d9e26909f0d1814dd3e9 authored about 14 years ago by Austin Prete <[email protected]>
Got rid of the self.__dict__.updates, added __setattr__ to RedditContentObject so that subreddit and redditor attrs will automatically be objectified.

728b38799239ab962c553c4da68d3c61f8c07a75 authored about 14 years ago by JB <[email protected]>
Fixed urljoin, fixed the closure bug.

7c05332bf9a10fddb56c6804811e29a11259a2fe authored over 14 years ago by MY <[email protected]>
TEMPFIX for dumb bug.

8c70a058f8a53363f07afe10aa30d1b2bb4c0922 authored over 14 years ago by MY <[email protected]>
Moved @url to json.

834168910ad1402a29161a644d3917b51a85ca8e authored over 14 years ago by MY <[email protected]>
Made json the default for requests, made no fetch the default for Subreddits and Redditors, fixed a bug with saving. Added DEBUG.

cf68c494acdab82e87f2e7f644303b58cda69d68 authored over 14 years ago by MY <[email protected]>
Fixed _get_content limits where they were missing.

14f7d33dbaac40a81c1bbfb29ca729aae4d887b0 authored over 14 years ago by JB <[email protected]>
Made urljoins a bit looser.

f9778f5d52e37c573e03e75791d653ac4fcffc88 authored over 14 years ago by JB <[email protected]>
Got rid of the rather useless reddit.com getter in favor of a front page getter which was oddly missing, though I probably just took it out accidentally.

0563a4bcd00913cd736717dfe134b8fe3d19824f authored over 14 years ago by JB <[email protected]>
Made into package. Still have to fix this, but I'm lazy, I'll get to the setup eventually...

3cf2c20914db07d8ae653c5f70d0804b7f12f0c3 authored over 14 years ago by JB <[email protected]>
Fixed minor get_saved_links bug.

5139da946f0b322f00b3f5a1d78eda17504554fa authored over 14 years ago by MY <[email protected]>
More code refactoring, fixed captcha issue, added option to not fetch a Subreddit / Redditor.

57843cf867364abca5e57683271a11098863b396 authored over 14 years ago by JB <[email protected]>
Bugfix: _get_content was checking wrong condition.

ac0dac88886375ddc927451ced3b11bf667fb373 authored over 14 years ago by MY <[email protected]>
Bugfix: nonlocal in url, but just commented it out since this is a 2.x branch... Either we'll need to use another var or just not do this. Not a big deal.

d78b9fd5fc4d7552ece8d9b034ebdc7c01f40960 authored over 14 years ago by MY <[email protected]>
Another major code refactor. RedditContentObject for the 4 reddit content types. Moved urls into a decorator. Bunch more important changes. Needs testing.

e217835b43d72f65e4132396f062824dd612bf95 authored over 14 years ago by MY <[email protected]>
Code cleanup. Got rid of the RedditPage class. /r/reddit.com actually is a Subreddit. Made Subreddit and Redditor properly populate themselves on init. Added __doc__s for some closures. Still have to fix Reddit.ban and Reddit.make_*.

45d0d9845137866a2f41d80a5624469d740e4411 authored over 14 years ago by MY <[email protected]>
New Functionality: Register new redditor. Added require_captcha. Added wraps to function wrappers. NOTE: UNSTABLE! Two known (relatively minor) bugs. Will be fixed shortly.

d498c41a8fd4ac3a238b41f84216104e70fc8cc4 authored over 14 years ago by MY <[email protected]>
Renamed _get_page and _get_json_page to something a bit more appropriate for both GETing and POSTing.

dfd735280ed5060f9e61c8555ec5e3d1c1983195 authored over 14 years ago by MY <[email protected]>
Dumb bug fix in the json object hook.

5e981421750fb57398e068b289d95298ddc667e7 authored over 14 years ago by MY <[email protected]>
Code factoring: big time cleanup on _get_content. This commit needs to be looked over carefully (and we really need some unit testing, but that's definitely not my strong point). It's more efficient though, as we shouldn't be doing our own object coercing, just use json's object_hook param.

d48b4027fbdb7894ae0fe5fbe249ff168eaf4604 authored over 14 years ago by MY <[email protected]>
Moved top level methods to bottom.

b69e773a54a3039705c3964548b655d041ddd496 authored over 14 years ago by MY <[email protected]>
New functionality: register! + logout

f47bb3906ca5b49f4e474cebdfd1f6e2fc37d85a authored over 14 years ago by MY <[email protected]>
New functionality: Un(friend/ban/moderator/contributor)

6f55c9fd0b281a3b2e04ba6bd82e629d0b3e8d89 authored over 14 years ago by MY <[email protected]>
Started cleaning up the top constants section. It may be good to just use a decorator or something for this, but at least for now, the clutter had to go. Just moved all the urls into the functions that use them, since they're not really being used across functions.

f720914f3efa54cc83d3b63c35aeb73c4eacb87d authored over 14 years ago by MY <[email protected]>
Bad captcha exception.

1d0bf54f581f08cdcb6e7702a02bf7baa5001e22 authored over 14 years ago by MY <[email protected]>
Started register support. Moved _content_type to each subclass where it belongs. Minor reorder of a few methods.

0eea3eb232ffbf7ecbccad431215609a2be5370c authored over 14 years ago by MY <[email protected]>
Missed RedditPage converting instance attrs to class attrs for the methods. Fixed.

15696ce7378b38e24a11cc79caa067e5cf242108 authored over 14 years ago by MY <[email protected]>
Another minor README bump.

26c26902c038057da71f9e691a2e4343f61d9db7 authored over 14 years ago by MY <[email protected]>
Slight README bump.

eddb37351145d662aeb0a6bad2d5be1b699cc2df authored over 14 years ago by MY <[email protected]>
Minor comment remove.

59ad09365f5ef99ac3a537303bae5d5d38d16fed authored over 14 years ago by MY <[email protected]>
New functionality: Create a subreddit.

e0553c4ad468bcdfeae8c3e5f64a73a2a489acb4 authored over 14 years ago by MY <[email protected]>
Friending/modding/contributoring/banning should all work now.

7f9224f2735f5d389597fc4c1de497e4ecb3f73d authored over 14 years ago by MY <[email protected]>
Had the closures as instance attrs instead of class attrs for some reason. Fixed.

3afc86dfc2d84e08e6191783c9a30c18cfc5e58a authored over 14 years ago by MY <[email protected]>
Fixed the other nasty recursion bug. Got a little closer to friending/modding/contributoring/banning support. Clarified decorator function names to make debug a bit easier. Cleaned up the url_data logic in _get_content.

e9b5e26dd076434dcc4918d4a0ea4a3566a25930 authored over 14 years ago by MY <[email protected]>
Begone eval.

503c427868c7389a0c5c09e8f5eb396e5d1c53ae authored over 14 years ago by MY <[email protected]>
Fixed _get_page and _get_json_page factoring. This works now. The only thing left is to perhaps add an HTTP header to the modhash method, instead of using read with a bytes param like before, which gets the whole page anyhow.

04a7e054022d30b8115fc0906564fe4ed63a0257 authored over 14 years ago by MY <[email protected]>
Whitespace AutoFix.

5827cb53cc331b0cf9d4e050c85ea432c0a3f6a8 authored over 14 years ago by MY <[email protected]>
TODO: Also enforce don't hit the same URL twice in 30 secs rule with sleep_after as per API docs.

b8553bffd8e9e9f5629b8ef8b305822660e22f42 authored over 14 years ago by MY <[email protected]>
Using stdlib json instead of simplejson, with simplejson as a fallback. Also fixed a bug with _get_json_page and memoizing. We really shouldn't have to memoize that method separately, but since as is _get_page is just memoizing the file object, I added memoize to _get_json_page, otherwise e.g. Subreddit __getattr__s are broken...

98d3ee60d41db1062b2e59dcd7316241353a8c4f authored over 14 years ago by MY <[email protected]>
updated README

a16d3fb99364819c03d5ec4566c55bf93856337d authored over 14 years ago by mellort <[email protected]>
Added tags to .gitignore.

63a36dca61e67c3293f0a0e0b12cc27257edfbf2 authored over 14 years ago by Julian <[email protected]>
Here's the other factory. We need to document the arguments now (which we'd have need to have done anyhow.)

fd73a6cc3abeecc65f45e5ac6d7ab407b1420f76 authored over 14 years ago by MY <[email protected]>
Whoops, meant to say closure, I tend to mix those two terms up all the time unfortunately...

5f05aff6ca4800ca9eb54bfffc4f52d5485b214f authored over 14 years ago by MY <[email protected]>
Code factor: Factory method for Redditor. Doing the same thing for Subreddit is a little bit more of a pain since we need access to the inner function's args. Also added basic __doc__ for the 2 base classes.

1a200e843be6cd7ac797450ae86cd4275eed1549 authored over 14 years ago by MY <[email protected]>
Got rid of get_replies, which was doing no additional logic.

e37f270e0b0c67d2378f3e1d284cd637e1995706 authored over 14 years ago by MY <[email protected]>
Code factoring: Voteable parent class.

c10a0dfff971c169939a3f5dd07d270a5c3e0b85 authored over 14 years ago by MY <[email protected]>
Merge from upstream/resolve conflict.

6113cff9d414bfc29a0bd6257e900f90bd7d2b7f authored over 14 years ago by MY <[email protected]>
Code factoring: _get_page does param encoding, can now be used just about everywhere just by passing the dict of mappings from API response to whatever. Remember to .read() the page, though.

219acc2bebfa2bae8b0468ac41b6238d3ee1b447 authored over 14 years ago by MY <[email protected]>
fixed another variable naming error

2d7d914818d567d827a4c8e7bf45075acfba35dc authored over 14 years ago by mellort <[email protected]>
Fixed the other attr typo :).

c3594d70f7c63edc0185777ca774a8c618129c8c authored over 14 years ago by MY <[email protected]>
fixed small variable naming error

18652bf1d72f80f221fa9fab4818e07538e5b037 authored over 14 years ago by mellort <[email protected]>
Revert "Replaced chained if with a dict. I guess this is arguable with only 3 conditions, but it's a tiny bit more concise, and a bit easier to maintain."

This reverts commit 366566937e4897f7b732b5c9b079a7b104c84b43. I like the idea, but I think it ma...

78525758060dfb0d1c4769a49aecc85bcd155b35 authored over 14 years ago by mellort <[email protected]>
Replaced chained if with a dict. I guess this is arguable with only 3 conditions, but it's a tiny bit more concise, and a bit easier to maintain.

366566937e4897f7b732b5c9b079a7b104c84b43 authored over 14 years ago by MY <[email protected]>
Stylistic changes. Fixed spacings, some line length fixes, removed some extraneous comments.

758d8aca9a6c9db802dca289bd3842302b0085e2 authored over 14 years ago by MY <[email protected]>
Moved API fields to within model. We don't really need to check these I don't think, we could just pass it off to the API to check... But in the meantime they're probably better here than as top level constants.

a90a0eb2919238a2ccc56475ab3b6e7771594bbd authored over 14 years ago by MY <[email protected]>
Cleaned up Reddit() class namespace. Request, urlopen and cookie_jar moved to internal attrs.

c4c75964c06cfbc613d8b8663fba0f85b99791cb authored over 14 years ago by MY <[email protected]>
Another typo fix.

207625a5596527a1b47ab2af58a7eea94fb5a4c3 authored over 14 years ago by MY <[email protected]>
Leave it to me to forget to fix possible recursion problems with the __repr__. Now raises NotImplementedError if the subclass doesn't define __str__ (which needs to be defined in order to know what to use for the second position). Alternatively we could just return an empty string, but this is probably nicer.

3d69342545b0d0d0f07bf85a6fb99d01248292ba authored over 14 years ago by MY <[email protected]>
_get_about_attributes are perfect candidates for __getattr__.

474bca97b2b26c991bf24a98fb3a9a8a7331aee4 authored over 14 years ago by MY <[email protected]>
Did same for 'is None' (last commit was for 'is not None').

2d3c5f7b391a35ef6edd3798cc1bb380c0bc215c authored over 14 years ago by MY <[email protected]>
Fixed all of the condition checks that were looking for .

3ddc0a1803e8dd7b532476ea71450a1948abe4a9 authored over 14 years ago by MY <[email protected]>
Added RedditObject base class, so far with only __repr__ method for subclasses. Changed __repr__'s on subclasses to __str__.

5331fa4d7a07c71f04b45d651f10878ef1d19f4d authored over 14 years ago by MY <[email protected]>
Finished the functionality of the sleep_after decorator (which might use a rename). Instead of sleeping after every call (which I assume was temporary), it should just wait after anything called within the REDDIT_API_WAIT_TIME from the last call now. This breaks functionality though, since the lambdas are blowing up. Fix coming.

7317b8d8311a8134531ce1a26be5475230de71d9 authored over 14 years ago by MY <[email protected]>