Skip to main content

Library for interacting with SharePoint

Project description

sharepoint-crud

GitHub repo size GitHub language count GitHub forks Bitbucket open issues Bitbucket open pull requests

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 sharepoint-crud

  • run the command: pip install sharepoint-crud to activate the virtual environment
  • voilà!

☕ Run

To run sharepoint-crud, 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 and upload file. An example:

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 sharepoint-crud, follow these steps:

  1. Fork this repository.
  2. Create a branch: git checkout -b <branch_name>.
  3. Make your changes and confirm them: git commit -m '<commit_message>'
  4. Send to the original branch: git push origin <project_name> <location>
  5. Create the pull request.

Alternatively, consult the GitHub documentation on creating a pull request.

🤝 Colaborators

Emanuel's profile photo
Emanuel Almeida

📝 Licença

This project is under license. See the file LICENÇA for more details.

⬆ Turn to top

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sharepoint-crud-1.7.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

sharepoint_crud-1.7-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file sharepoint-crud-1.7.tar.gz.

File metadata

  • Download URL: sharepoint-crud-1.7.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.10

File hashes

Hashes for sharepoint-crud-1.7.tar.gz
Algorithm Hash digest
SHA256 a1d45cd3b5a3845e55ee79b3e92ea3446480baa7f2b5f34bbcae337410680df5
MD5 b8e5443482aabf0867238ffe2e9d5dca
BLAKE2b-256 4e9768d639fb8dac435745ce4bf0f6dc1571425f6145e1ecf575d71945f74f6c

See more details on using hashes here.

File details

Details for the file sharepoint_crud-1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for sharepoint_crud-1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 30a19d44b90ecbecf8e71c320c2f4ee3d95a0231f39462cc6fe83cf9cb5e3151
MD5 f9535a8bdd7d350dac3d5d11187b630b
BLAKE2b-256 3ae552cc43edc526909d0772f1ea67b413ebc8214f8d237511e8bbd1b20fe602

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page