forked from O365/python-o365
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
50 lines (35 loc) · 2.12 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env python
from distutils.core import setup
CLASSIFIERS = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Topic :: Office/Business :: Office Suites',
'Topic :: Software Development :: Libraries'
]
long_desc = '''When I started making this library I was looking for something that would provide a simple interface to an office365 mailbox. I was creating a system that would allow people send an email to our printer without having to require they install drivers or be inside the office firewall (important for students). As I found working with the office API to be fairly easy, I quickly built up solid general use library for working with office 365.
The objective here is to make it easy to make utilities that are to be run against an office 365 account. for example, the code for sending an email is:
from O365 import Message
authenticiation = ('[email protected]','YourPassword')
m = Message(auth=authenticiation)
m.setRecipients('[email protected]')
m.setSubject('I made an email script.')
m.setBody('Talk to the computer, cause the human does not want to hear it any more.')
m.sendMessage()
That's it. making and sending emails and events is now very simple and straight forward. I've used it for emailing the printer and creating a overview of our car booking system. simple, easy, but still in development. Any suggestions or advice are quite welcome at the projects github page:
https://github.com/Narcolapser/python-o365'''
setup(name='O365',
version='0.9.14',
description='Python library for working with Microsoft Office 365',
long_description=long_desc,
author='Toben Archer',
author_email='[email protected]',
maintainer='Toben Archer',
maintainer_email='[email protected]',
url='https://github.com/Narcolapser/python-o365',
packages=['O365'],
install_requires=['requests', 'oauthlib','requests_oauthlib','future'],
license='Apache 2.0',
classifiers=CLASSIFIERS
)
#so I don't have to keep looking it up: python setup.py sdist upload -r pypi