Library for interacting with SharePoint
Project description
sharepoint-crud
Solution to integrate SharePoint with your Python script
Improvement
This project is under development, so if you have any suggestions, please let me know:
- Get file content
- Search for a file
- Upload file
- Edit file
- Delete a file
💻 Requeriments
Before you begin, ensure you have met the following requirements:
- you have installed a
python 3.8
or higher
🚀 Install pypoint
- run the command:
pip install sharepoint-crud
to activate the virtual environment - voilà!
☕ Run
To run pypoint, you need a sharepoint account. You can instanciate an object with the following parameters:
from sharepoint-crud import SharePointCrud
sharepoint = SharePointCrud(
'https://your-site.sharepoint.com/sites/your-library',
'your-email@your-domain.com',
'your-password'
)
Actually, is possible download a file from sharepoint:
file_content = sharepoint.get_file('your/folder/to/your/file', 'your-file.file_format')
An example:
I have a file example.csv
in the folder my_library/Shared Files/my_folder
on SharePoint:
from sharepoint-crud import SharePointCrud
file_content = SharePointCrud(
'https://your-site.sharepoint.com/sites/your-library',
'your-email@your-domain.com',
'your-password'
).get_file('my_library/Shared Files/my_folder', 'example.csv')
📫 Contributing
To contribute to pypoint, follow these steps:
- Fork this repository.
- Create a branch:
git checkout -b <branch_name>
. - Make your changes and confirm them:
git commit -m '<commit_message>'
- Send to the original branch:
git push origin <project_name> <location>
- Create the pull request.
Alternatively, consult the GitHub documentation on creating a pull request.
🤝 Colaborators
Emanuel Almeida |
📝 Licença
This project is under license. See the file LICENÇA for more details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for sharepoint_crud-1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9768e095170a0bb0c18495469b470c28d82bbb87327744cdda78591263ee0e49 |
|
MD5 | 877e4f95c8806ccae25160d95fcdada8 |
|
BLAKE2b-256 | 04b1db193362842bdc5af234672d0d2a4ea2d1b6aa6e73485a15a7de92017d91 |