Skip to content

Commit df7e2d3

Browse files
committed
Adding setup barebone for PyPi integration
0 parents  commit df7e2d3

File tree

7 files changed

+87
-0
lines changed

7 files changed

+87
-0
lines changed

.gitignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
build/
2+
dist/
3+
*.egg-info/
4+
*.egg
5+
*.py[cod]
6+
__pycache__/
7+
*.so
8+
*~
9+
venv/*

Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
all:
2+
@echo "make clean"
3+
4+
clean:
5+
rm -rf build dist *.egg-info */__pycache__ */*.pyc

README.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## Python Loklak API
2+
--------------------------------------------
3+
4+
If you want to create an alternative twitter search portal, the only way would be to use the official twitter API to retrieve Tweets. But that interface needs an OAuth account and it makes your search portal completely dependent on Twitters goodwill. The alternative is, to scrape the tweets from the twitter html search result pages, but Twitter may still lock you out on your IP address. To circumvent this, you need many clients accessing twitter to scrape search results. This makes it neccessary to create a distributed peer-to-peer network of twitter scrapers which can all organize, store and index tweets. This solution was created with loklak.
5+
6+
#### What is Loklak ?
7+
It is a server application which is able to collect messages from various sources, including twitter. The server contains a search index and a peer-to-peer index sharing interface.
8+
9+
--------------------------------------------
10+
11+
#### Why should I use this ?
12+
If you like to be anonymous when searching things, want to archive tweets or messages about specific topics and if you are looking for a tool to create statistics about tweet topics, then you may consider loklak. With loklak you can do:
13+
- collect and store a very, very large amount of tweets and similar messages
14+
- create your own search engine for tweets
15+
- omit authentication enforcment for API requests on the twitter plattform
16+
- share tweets and tweet archives with other loklak users
17+
- search anonymously on your own search portal
18+
- create your own tweet search portal or statistical evaluations, i.e.:..
19+
- use Kibana to analyze large amounts of tweets as source for statistical data.
20+
21+
--------------------------------------------
22+
23+
# Documentation of the API and Usage Examples
24+
(In Progress)

loklak.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env python
2+
# encoding: utf-8
3+
4+
from __future__ import (absolute_import, division,
5+
print_function, unicode_literals)
6+
7+
import copy
8+
import math
9+
import sys
10+
import time
11+
from collections import namedtuple
12+
import requests

requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
requests==2.8.1
2+
wsgiref==0.1.2

setup.cfg

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[bdist_wheel]
2+
universal=1
3+
4+
[metadata]
5+
description-file = README.md

setup.py

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import re, uuid
2+
3+
try:
4+
from setuptools import setup
5+
except ImportError:
6+
from distutils.core import setup
7+
8+
9+
install_reqs = parse_requirements('requirements.txt', session=uuid.uuid1())
10+
reqs = [str(req.req) for req in install_reqs]
11+
12+
setup(name='python-loklak-api',
13+
version='1.0',
14+
description="Python API for loklak, Anonymous distributed P2P Systems.",
15+
author='Sudheesh Singanamalla',
16+
author_email='[email protected]',
17+
url='https://github.com/sudheesh001/python-loklak-api',
18+
license='',
19+
platforms='Linux/Mac',
20+
py_modules=['loklak'],
21+
classifiers=[
22+
'Intended Audience :: Developers',
23+
'Programming Language :: Python',
24+
'Programming Language :: Python :: 2',
25+
'Programming Language :: Python :: 3'],
26+
keywords="Twitter Loklak Anonymous API",
27+
zip_safe=False,
28+
download_url = 'https://github.com/gearsystems/nonude',
29+
entry_points={'console_scripts': ['python-loklak-api = loklak:main']},
30+
)

0 commit comments

Comments
 (0)