8000 Generated the initial files · yezzatech/wc-api-python@08b2818 · GitHub
[go: up one dir, main page]

Skip to content

Commit 08b2818

Browse files
Generated the initial files
0 parents  commit 08b2818

File tree

5 files changed

+94
-0
lines changed

5 files changed

+94
-0
lines changed

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 4
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
# woocommerce-api
3+
4+
A Python wrapper for the WooCommerce REST API
5+
6+
## README
7+
8+
This is the README file for woocommerce-api
9+
10+
There are many like it, but this one is mine.
11+
12+
## Todo
13+
14+
[ ] Update README file with something useful about the project
15+
[ ] Write code
16+
[ ] Ship code
17+
[ ] Profit!

setup.py

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
#!/usr/bin/env python
2+
from __future__ import absolute_import, print_function
3+
from itertools import chain, imap, repeat
4+
from setuptools import setup, find_packages
5+
from os import walk
6+
from os.path import join
7+
8+
# generated by pymod-generator
9+
#
10+
# DO NOT CHANGE THIS METHOD!!
11+
# to include directories in the module see :package_data: below
12+
#
13+
def include_directories(in_dirs):
14+
paths = list()
15+
for directory in in_dirs:
16+
paths.extend(list(chain.from_iterable(imap(join, repeat(root[len('woocommerce-api') + 1:]), files) for root, _, files in walk(join('woocommerce-api', directory)))))
17+
return paths
18+
19+
# add list of directories to be included
20+
#
21+
# package_data = include_directories(['dir_to_include', 'other_dir_to_include'])
22+
#
23+
package_data = include_directories([])
24+
25+
26+
# add pypi dependencies here
27+
#
28+
# required_packages = [
29+
# 'boto',
30+
# 'gunicorn',
31+
# 'gevent',
32+
# 'Flask',
33+
# 'Flask-RESTful'
34+
# ]
35+
#
36+
required_packages = [
37+
'requests,oauthlib'
38+
]
39+
40+
41+
# list of scripts that should be linked
42+
#
43+
# 'my-cmd=woocommerce-api.cli:my_cmd_method'
44+
#
45+
scripts = [
46+
'hello-woocommerce-api=woocommerce-api.cli:hello'
47+
]
48+
49+
50+
setup(name='woocommerce-api',
51+
version='0.1',
52+
description="A Python wrapper for the WooCommerce REST API",
53+
packages=find_packages(),
54+
package_data={
55+
'woocommerce-api': package_data
56+
},
57+
install_requires=required_packages,
58+
entry_points=dict(console_scripts=scripts))

woocommerce-api/__init__.py

Whitespace-only changes.

woocommerce-api/__main__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
def main():
3+
pass
4+
5+
if __name__ == '__main__':
6+
main()

0 commit comments

Comments
 (0)
0