upload-to-sharepoint


Nameupload-to-sharepoint JSON
Version 0.1.1 PyPI version JSON
download
home_pagehttps://your-repository-url-or-pypi-url
SummaryA library to upload files to SharePoint.
upload_time2024-09-23 16:03:55
maintainerNone
docs_urlNone
authorYour Name
requires_python>=3.6
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Upload to SharePoint

A Python library to upload files to SharePoint.

## Installation

You can install this package using pip:

```bash
pip install upload_to_sharepoint
```

## Usage

To upload a file to SharePoint, you can use the `upload_file_to_sharepoint` function. Here's how to do it:

### Example

```python
from upload_to_sharepoint.sharepoint_upload import upload_file_to_sharepoint

# User credentials
username = 'your_username'
password = 'your_password'  # Consider using a more secure method for password management

# SharePoint site details
sharepoint_site = 'https://your-sharepoint-site-url'
target_folder_relative_url_base = '/sites/your_site_name/Shared Documents/target_folder'

# Local file to upload
file_name = 'path_to_your_file.txt'

# Upload the file
upload_file_to_sharepoint(username, password, sharepoint_site, target_folder_relative_url_base, file_name)
```

### Parameters

- `username`: Your SharePoint username.
- `password`: Your SharePoint password.
- `sharepoint_site`: The URL of your SharePoint site (e.g., `https://your-organization.sharepoint.com/sites/your_site_name`).
- `target_folder_relative_url_base`: The relative URL to the target folder in SharePoint (e.g., `/sites/your_site_name/Shared Documents/target_folder`).
- `file_name`: The path to the local file you want to upload.

            

Raw data

            {
    "_id": null,
    "home_page": "https://your-repository-url-or-pypi-url",
    "name": "upload-to-sharepoint",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Your Name",
    "author_email": "your.email@example.com",
    "download_url": "https://files.pythonhosted.org/packages/7b/96/0400f2835d5883c99a7a1e1fd7c39e4c5c41ab4dcd9b326a5420e924912d/upload_to_sharepoint-0.1.1.tar.gz",
    "platform": null,
    "description": "# Upload to SharePoint\r\n\r\nA Python library to upload files to SharePoint.\r\n\r\n## Installation\r\n\r\nYou can install this package using pip:\r\n\r\n```bash\r\npip install upload_to_sharepoint\r\n```\r\n\r\n## Usage\r\n\r\nTo upload a file to SharePoint, you can use the `upload_file_to_sharepoint` function. Here's how to do it:\r\n\r\n### Example\r\n\r\n```python\r\nfrom upload_to_sharepoint.sharepoint_upload import upload_file_to_sharepoint\r\n\r\n# User credentials\r\nusername = 'your_username'\r\npassword = 'your_password'  # Consider using a more secure method for password management\r\n\r\n# SharePoint site details\r\nsharepoint_site = 'https://your-sharepoint-site-url'\r\ntarget_folder_relative_url_base = '/sites/your_site_name/Shared Documents/target_folder'\r\n\r\n# Local file to upload\r\nfile_name = 'path_to_your_file.txt'\r\n\r\n# Upload the file\r\nupload_file_to_sharepoint(username, password, sharepoint_site, target_folder_relative_url_base, file_name)\r\n```\r\n\r\n### Parameters\r\n\r\n- `username`: Your SharePoint username.\r\n- `password`: Your SharePoint password.\r\n- `sharepoint_site`: The URL of your SharePoint site (e.g., `https://your-organization.sharepoint.com/sites/your_site_name`).\r\n- `target_folder_relative_url_base`: The relative URL to the target folder in SharePoint (e.g., `/sites/your_site_name/Shared Documents/target_folder`).\r\n- `file_name`: The path to the local file you want to upload.\r\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A library to upload files to SharePoint.",
    "version": "0.1.1",
    "project_urls": {
        "Homepage": "https://your-repository-url-or-pypi-url"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ee725ed018be2ee90dde19e92bf244c4853e5198d318b43a33450b99152eea47",
                "md5": "caf4953764a9a5e051b8934a61a24b71",
                "sha256": "7aea1d1902212ed95b838adb6b578e9b3673d70f2abe30ad90d162964ccfc611"
            },
            "downloads": -1,
            "filename": "upload_to_sharepoint-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "caf4953764a9a5e051b8934a61a24b71",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 2556,
            "upload_time": "2024-09-23T16:03:53",
            "upload_time_iso_8601": "2024-09-23T16:03:53.151996Z",
            "url": "https://files.pythonhosted.org/packages/ee/72/5ed018be2ee90dde19e92bf244c4853e5198d318b43a33450b99152eea47/upload_to_sharepoint-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7b960400f2835d5883c99a7a1e1fd7c39e4c5c41ab4dcd9b326a5420e924912d",
                "md5": "d74f0a043e2fa716a4e800f1dd1ae571",
                "sha256": "f7ab7f0902f457cf1ada0da0c654358f519fa92d1d3ab2bb23a3e677530b8a0a"
            },
            "downloads": -1,
            "filename": "upload_to_sharepoint-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "d74f0a043e2fa716a4e800f1dd1ae571",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 2167,
            "upload_time": "2024-09-23T16:03:55",
            "upload_time_iso_8601": "2024-09-23T16:03:55.554094Z",
            "url": "https://files.pythonhosted.org/packages/7b/96/0400f2835d5883c99a7a1e1fd7c39e4c5c41ab4dcd9b326a5420e924912d/upload_to_sharepoint-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-23 16:03:55",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "upload-to-sharepoint"
}
        
Elapsed time: 0.59821s