Skip to content

Commit bc17acb

Browse files
committed
Initial commit
0 parents  commit bc17acb

9 files changed

+164
-0
lines changed

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Ignore Python compiled files
2+
*.pyc
3+
__pycache__/
4+
5+
# Ignore build and dist folders for PyPI
6+
/build/
7+
/dist/

LICENSE

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
This program is free software: you can redistribute it and/or modify
2+
it under the terms of the GNU General Public License as published by
3+
the Free Software Foundation, either version 3 of the License, or
4+
(at your option) any later version.
5+
6+
This program is distributed in the hope that it will be useful,
7+
but WITHOUT ANY WARRANTY; without even the implied warranty of
8+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9+
GNU General Public License for more details.
10+
11+
You should have received a copy of the GNU General Public License
12+
along with this program. If not, see <https://www.gnu.org/licenses/>.

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# PyOdoo
2+
3+
[![Travis CI Build Status](https://img.shields.io/travis/muflone/pyodoo/master.svg)](https://travis-ci.org/muflone/pyodoo)
4+
[![CircleCI Build Status](https://img.shields.io/circleci/project/github/muflone/pyodoo/master.svg)](https://circleci.com/gh/muflone/pyodoo)
5+
[![PyPI - Version](https://img.shields.io/pypi/v/PyOdoo.svg)](https://pypi.org/project/PyOdoo/)
6+
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/PyOdoo.svg)](https://pypi.org/project/PyOdoo/)
7+
[![Coveralls Status](https://img.shields.io/coveralls/github/muflone/pyodoo/master.svg)](https://coveralls.io/github/muflone/pyodoo?branch=master)
8+
9+
**Description:** API for Odoo
10+
11+
**Copyright:** 2021 Fabio Castelli (Muflone) <[email protected]>
12+
13+
**License:** GPL-3+
14+
15+
**Source code:** https://github.com/muflone/pyodoo
16+
17+
**Documentation:** http://www.muflone.com/pyodoo/
18+
19+
# Description
20+
21+
PyOdoo is an attempt to build a common API to interact with any
22+
[**Odoo**](https://www.odoo.com/) server in order to operate using
23+
its XML RPC API.
24+
25+
# System Requirements
26+
27+
* Python 3.x

pyodoo/__init__.py

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
##
2+
# Project: PyOdoo
3+
# Description: API for Odoo
4+
# Author: Fabio Castelli (Muflone) <[email protected]>
5+
# Copyright: 2021 Fabio Castelli
6+
# License: GPL-3+
7+
# This program is free software: you can redistribute it and/or modify
8+
# it under the terms of the GNU General Public License as published by
9+
# the Free Software Foundation, either version 3 of the License, or
10+
# (at your option) any later version.
11+
#
12+
# This program is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
# GNU General Public License for more details.
16+
#
17+
# You should have received a copy of the GNU General Public License
18+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
19+
##

pyodoo/constants.py

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
##
2+
# Project: PyOdoo
3+
# Description: API for Odoo
4+
# Author: Fabio Castelli (Muflone) <[email protected]>
5+
# Copyright: 2021 Fabio Castelli
6+
# License: GPL-3+
7+
# This program is free software: you can redistribute it and/or modify
8+
# it under the terms of the GNU General Public License as published by
9+
# the Free Software Foundation, either version 3 of the License, or
10+
# (at your option) any later version.
11+
#
12+
# This program is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
# GNU General Public License for more details.
16+
#
17+
# You should have received a copy of the GNU General Public License
18+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
19+
##
20+
21+
APP_NAME = 'PyOdoo'
22+
APP_VERSION = '0.0.1'
23+
APP_DESCRIPTION = 'API for Odoo'
24+
APP_ID = 'pyodoo.muflone.com'
25+
APP_URL = 'http://www.muflone.com/pyodoo/'
26+
APP_AUTHOR = 'Fabio Castelli'
27+
APP_AUTHOR_EMAIL = '[email protected]'
28+
APP_COPYRIGHT = 'Copyright 2021 %s' % APP_AUTHOR

requirements.txt

Whitespace-only changes.

requirements_dev.txt

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-r requirements.txt
2+
3+
flake8==3.9.2
4+
build==0.4.0
5+
twine==3.4.1

setup.cfg

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[egg_info]
2+
egg-base = ../build
3+
4+
[build]
5+
build-base = ../build
6+
7+
[bdist_wheel]
8+
dist-dir = ../dist
9+
10+
[bdist]
11+
dist-dir = ../dist
12+
13+
[sdist]
14+
dist-dir = ../dist

setup.py

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
##
2+
# Project: PyOdoo
3+
# Description: API for Odoo
4+
# Author: Fabio Castelli (Muflone) <[email protected]>
5+
# Copyright: 2021 Fabio Castelli
6+
# License: GPL-3+
7+
# This program is free software: you can redistribute it and/or modify
8+
# it under the terms of the GNU General Public License as published by
9+
# the Free Software Foundation, either version 3 of the License, or
10+
# (at your option) any later version.
11+
#
12+
# This program is distributed in the hope that it will be useful,
13+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
# GNU General Public License for more details.
16+
#
17+
# You should have received a copy of the GNU General Public License
18+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
19+
##
20+
21+
import os.path
22+
import setuptools
23+
24+
import pyodoo.constants
25+
26+
27+
with open(os.path.join(os.path.abspath(os.path.dirname(__file__)),
28+
'README.md'),
29+
encoding='utf-8') as f:
30+
long_description = f.read()
31+
32+
setuptools.setup(
33+
name=pyodoo.constants.APP_NAME,
34+
version=pyodoo.constants.APP_VERSION,
35+
author=pyodoo.constants.APP_AUTHOR,
36+
author_email=pyodoo.constants.APP_AUTHOR_EMAIL,
37+
description=pyodoo.constants.APP_DESCRIPTION,
38+
long_description=long_description,
39+
long_description_content_type='text/markdown',
40+
url=pyodoo.constants.APP_URL,
41+
packages=setuptools.find_packages(),
42+
classifiers=[
43+
'Development Status :: 1 - Planning ',
44+
'Intended Audience :: Developers',
45+
'License :: OSI Approved :: '
46+
'GNU General Public License v3 or later (GPLv3+)',
47+
'Operating System :: OS Independent',
48+
'Programming Language :: Python :: 3',
49+
'Programming Language :: Python :: 3.9',
50+
'Topic :: Software Development :: Libraries :: Python Modules'
51+
],
52+
)

0 commit comments

Comments
 (0)