PROJECT STATUS
===================
I have not had access to a SharePoint server for a while now and I do not feel that I can support this library in any reasonable fashion. I will still accept pull requests and respond to issues as much as I can, but please be aware that I am no longer capapable of testing most of these changes.
SharePlum
==========
SharePlum is an easier way to work with SharePoint services. It handles all of the messy parts of dealing with SharePoint and allows you to write clean and Pythonic code.
Usage
-----
::
from shareplum import Site
from requests_ntlm import HttpNtlmAuth
auth = HttpNtlmAuth('DIR\\username', 'password')
site = Site('https://abc.com/sites/MySharePointSite/', auth=auth)
sp_list = site.List('list name')
data = sp_list.GetListItems('All Items', row_limit=200)
Authenticate to Office365 Sharepoint
------------------------------------
::
from shareplum import Site
from shareplum import Office365
authcookie = Office365('https://abc.sharepoint.com', username='username@abc.com', password='password').GetCookies()
site = Site('https://abc.sharepoint.com/sites/MySharePointSite/', authcookie=authcookie)
sp_list = site.List('list name')
data = sp_list.GetListItems('All Items', row_limit=200)
Access REST API
------------------------------------
::
from shareplum import Site
from shareplum import Office365
from shareplum.site import Version
authcookie = Office365('https://abc.sharepoint.com', username='username@abc.com', password='password').GetCookies()
site = Site('https://abc.sharepoint.com/sites/MySharePointSite/', version=Version.v2016, authcookie=authcookie)
folder = site.Folder('Shared Documents/This Folder')
folder.upload_file('Hello', 'new.txt')
folder.get_file('new.txt')
folder.check_out('new.txt')
folder.check_in('new.txt', "My check-in comment")
folder.delete_file('new.txt')
Features
--------
- Reading and writing data to SharePoint lists using Python Dictionaries.
- Automatic conversion between SharePoint internal names and displayed names.
- Using Queries to filter data when retrieving List Items.
- Automatic conversion of data types.
- Supports Users datatype.
- Supports Office365 Sharepoint sites.
- Supports Folder and File operations with the REST API. (Requires SharePoint 2013 or newer)
Documentation
-------------
`Read the Docs <http://shareplum.readthedocs.org/en/latest/>`_
Contribute
----------
- `Issue Tracker <http://github.com/jasonrollins/shareplum/issues>`_
- `Source Code <http://github.com/jasonrollins/shareplum>`_
Unit Tests
^^^^^^^^^^
This package uses python unittest.
To run the unit tests, first copy tests/test_settings.py as tests/local_test_seetings.py and edit the contents to point at your sharepoint.
Second export your sharepoint password as an environment variable 'TEST_PASSWORD'
Then from the root folder run:
::
python -m unittest disover # all tests
python -m unittest tests.test_site # all site tests
License
-------
This project is licensed under the MIT license.
Raw data
{
"_id": null,
"home_page": "https://github.com/rcwethey/shareplumFreightplusIO",
"name": "shareplumFreightplusIO",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "SharePoint",
"author": "Ryan Wethey",
"author_email": "rwethey@freightplus.io",
"download_url": "https://files.pythonhosted.org/packages/d9/26/38a00fc37a0bb5940272973a5742407a30ac9fc0977cbe103f16f6cd1cca/shareplumfreightplusio-0.5.2.tar.gz",
"platform": null,
"description": "PROJECT STATUS\r\n===================\r\n\r\nI have not had access to a SharePoint server for a while now and I do not feel that I can support this library in any reasonable fashion. I will still accept pull requests and respond to issues as much as I can, but please be aware that I am no longer capapable of testing most of these changes.\r\n\r\nSharePlum\r\n==========\r\n\r\nSharePlum is an easier way to work with SharePoint services. It handles all of the messy parts of dealing with SharePoint and allows you to write clean and Pythonic code.\r\n\r\n\r\n\r\nUsage\r\n-----\r\n\r\n::\r\n\r\n from shareplum import Site\r\n from requests_ntlm import HttpNtlmAuth\r\n\r\n auth = HttpNtlmAuth('DIR\\\\username', 'password')\r\n site = Site('https://abc.com/sites/MySharePointSite/', auth=auth)\r\n sp_list = site.List('list name')\r\n data = sp_list.GetListItems('All Items', row_limit=200)\r\n\r\nAuthenticate to Office365 Sharepoint\r\n------------------------------------\r\n\r\n::\r\n\r\n from shareplum import Site\r\n from shareplum import Office365\r\n\r\n authcookie = Office365('https://abc.sharepoint.com', username='username@abc.com', password='password').GetCookies()\r\n site = Site('https://abc.sharepoint.com/sites/MySharePointSite/', authcookie=authcookie)\r\n sp_list = site.List('list name')\r\n data = sp_list.GetListItems('All Items', row_limit=200)\r\n\r\n\r\nAccess REST API\r\n------------------------------------\r\n\r\n::\r\n\r\n from shareplum import Site\r\n from shareplum import Office365\r\n from shareplum.site import Version\r\n\r\n authcookie = Office365('https://abc.sharepoint.com', username='username@abc.com', password='password').GetCookies()\r\n site = Site('https://abc.sharepoint.com/sites/MySharePointSite/', version=Version.v2016, authcookie=authcookie)\r\n folder = site.Folder('Shared Documents/This Folder')\r\n folder.upload_file('Hello', 'new.txt')\r\n folder.get_file('new.txt')\r\n folder.check_out('new.txt')\r\n folder.check_in('new.txt', \"My check-in comment\")\r\n folder.delete_file('new.txt')\r\n\r\n\r\nFeatures\r\n--------\r\n\r\n- Reading and writing data to SharePoint lists using Python Dictionaries.\r\n- Automatic conversion between SharePoint internal names and displayed names.\r\n- Using Queries to filter data when retrieving List Items.\r\n- Automatic conversion of data types.\r\n- Supports Users datatype.\r\n- Supports Office365 Sharepoint sites.\r\n- Supports Folder and File operations with the REST API. (Requires SharePoint 2013 or newer)\r\n\r\nDocumentation\r\n-------------\r\n\r\n`Read the Docs <http://shareplum.readthedocs.org/en/latest/>`_\r\n\r\nContribute\r\n----------\r\n\r\n- `Issue Tracker <http://github.com/jasonrollins/shareplum/issues>`_\r\n- `Source Code <http://github.com/jasonrollins/shareplum>`_\r\n\r\nUnit Tests\r\n^^^^^^^^^^\r\n\r\nThis package uses python unittest.\r\nTo run the unit tests, first copy tests/test_settings.py as tests/local_test_seetings.py and edit the contents to point at your sharepoint.\r\nSecond export your sharepoint password as an environment variable 'TEST_PASSWORD'\r\nThen from the root folder run:\r\n\r\n::\r\n\r\n python -m unittest disover # all tests\r\n python -m unittest tests.test_site # all site tests\r\n\r\nLicense\r\n-------\r\n\r\nThis project is licensed under the MIT license.\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python SharePoint FreightPlus Library",
"version": "0.5.2",
"project_urls": {
"Homepage": "https://github.com/rcwethey/shareplumFreightplusIO"
},
"split_keywords": [
"sharepoint"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "549a4a9ce70854b676d9fca53aa7d016f027dec8067ebed23bf9076d640e9b51",
"md5": "105c24bfab458351abc2e5111ea526e3",
"sha256": "13ae6273c6e9af92cc04c945d9cb5a01f4626b9a32bcb2cbe7a0d87c7f2bd14e"
},
"downloads": -1,
"filename": "shareplumFreightplusIO-0.5.2-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "105c24bfab458351abc2e5111ea526e3",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": null,
"size": 18930,
"upload_time": "2024-11-26T20:43:39",
"upload_time_iso_8601": "2024-11-26T20:43:39.948898Z",
"url": "https://files.pythonhosted.org/packages/54/9a/4a9ce70854b676d9fca53aa7d016f027dec8067ebed23bf9076d640e9b51/shareplumFreightplusIO-0.5.2-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "d92638a00fc37a0bb5940272973a5742407a30ac9fc0977cbe103f16f6cd1cca",
"md5": "43e1b697057e40b153415a49d0a0a77e",
"sha256": "4bff584721da0109141785bd759c328fb7bd0a8d6150b52aa708b7080a8689e9"
},
"downloads": -1,
"filename": "shareplumfreightplusio-0.5.2.tar.gz",
"has_sig": false,
"md5_digest": "43e1b697057e40b153415a49d0a0a77e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 18888,
"upload_time": "2024-11-26T20:43:41",
"upload_time_iso_8601": "2024-11-26T20:43:41.697808Z",
"url": "https://files.pythonhosted.org/packages/d9/26/38a00fc37a0bb5940272973a5742407a30ac9fc0977cbe103f16f6cd1cca/shareplumfreightplusio-0.5.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-26 20:43:41",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "rcwethey",
"github_project": "shareplumFreightplusIO",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "shareplumfreightplusio"
}