shareplum | Pythonic SharePoint | Content Management System library

 by   jasonrollins Python Version: 0.5.1 License: MIT

kandi X-RAY | shareplum Summary

kandi X-RAY | shareplum Summary

shareplum is a Python library typically used in Web Site, Content Management System applications. shareplum has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. However shareplum has 2 bugs. You can install using 'pip install shareplum' or download it from GitHub, PyPI.

Pythonic SharePoint
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              shareplum has a low active ecosystem.
              It has 114 star(s) with 61 fork(s). There are 10 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 63 open issues and 66 have been closed. On average issues are closed in 91 days. There are 9 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of shareplum is 0.5.1

            kandi-Quality Quality

              shareplum has 2 bugs (0 blocker, 0 critical, 2 major, 0 minor) and 62 code smells.

            kandi-Security Security

              shareplum has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              shareplum code analysis shows 0 unresolved vulnerabilities.
              There are 10 security hotspots that need review.

            kandi-License License

              shareplum is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              shareplum releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              shareplum saves you 611 person hours of effort in developing the same functionality from scratch.
              It has 1422 lines of code, 92 functions and 18 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed shareplum and discovered the below as its top functions. This is intended to give you an instant insight into shareplum implemented functionality, and help decide if they suit your requirements.
            • Creates a new list
            • Sends an HTTP POST request
            • Return the URL for a given service
            • Return headers for the given SOAP action
            • Update list items
            • Return the value of the field
            • Convert data to internal format
            • Generate headers for a SOAP action
            • Compute a dictionary with all the keys in a dictionary
            • Check in a file
            • Checkout a file
            • Get cookies from SecurityCenter
            • Get the JSON representation of the list
            • Delete folder from server
            • Creates a new folder
            • Creates a new Field
            • Gets the site information
            • Gets the collection for a list
            • Get list of templates
            • Returns a list of site templates
            • Get list of attachments
            • Gets information about the current list
            • Finds the differences between two dictionaries
            • Get a specific version collection
            • Get list of users
            • Returns the context information
            Get all kandi verified functions for this library.

            shareplum Key Features

            No Key Features are available at this moment for shareplum.

            shareplum Examples and Code Snippets

            No Code Snippets are available at this moment for shareplum.

            Community Discussions

            QUESTION

            Confused about python data types to insert into database
            Asked 2021-Apr-16 at 12:30

            I am trying to insert this value into SQL Server table and I'm not sure is this supposed to be a list or a dictionary.

            For some context I am pulling the data from a Sharepoint list using shareplum with code like this

            ...

            ANSWER

            Answered 2021-Apr-16 at 12:30

            convert your list of dictionaries to a list or tuple of the dictionary values.

            I've done it below using list comprehension to iterate through the list and the values() method to extract the values from a dictionary

            Source https://stackoverflow.com/questions/67122883

            QUESTION

            Sharepoint file storage give password expired reason through password not expired using python
            Asked 2021-Jan-27 at 08:08

            Unable to upload the file in SharePoint, since yesterday the code is working fine used stored file in Sharepoint now am getting the below error:

            Exception: ('Error authenticating against Office 365. Error from Office 365:', 'AADSTS50055: The password is expired.')

            The same thing happened for the other two accounts even. The function uploadMeta_file(filepath_meta) to call Sharepoint

            File "c:\Users\Desktop\work\sample\cookiepopup-kana-api.venv\lib\site-packages\shareplum\office365.py", line 80, in get_security_token raise Exception('Error authenticating against Office 365. Error from Office 365:', message[0].text) Exception: ('Error authenticating against Office 365. Error from Office 365:', 'AADSTS50055: The password is expired.')

            ...

            ANSWER

            Answered 2021-Jan-27 at 08:08

            Like you mentioned there is MFA enabled for your account. Looks like you have not handled the same in your application.

            There 2 ways to go about this.

            1. Provide Interactive logon UI for handling the MFA.

            2. Create a service account which has the MFA disabled. Thereby using this account to access the Sharepoint Online, you will not encounter the above issue.

            3. Using App Only Authentication

            What are Sharepoint app only ?

            App only authentication - will not require user credentials but you can get the data by authenticating the App. And Also, app authentication will indirectly bypass MFA (App only authentication are not subjected to MFA).

            More information : https://docs.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs

            I was reading through the Shareplum Tutorials - Unfortunately, but could not get the way to do the App Only Authentication. But you could double check at your end.

            If your goal is to use python, you can also use the below library :

            https://pypi.org/project/Office365-REST-Python-Client/#Working-with-SharePoint-API

            To perform the app only authentication :

            Source https://stackoverflow.com/questions/65824969

            QUESTION

            SharePlumRequestError: SharePlum HTTP Post Failed
            Asked 2020-Jul-24 at 07:08

            Error Screenshot:

            Hello Everyone,

            I am trying to set up a connection to SharePoint list so I can read/write data to SharePoint. Below is the following code that I have ran to form a connection using SharePlum library. I am running the same exact code as the library suggests with my credentials and url but I get this error which I can't see to find online anywhere. I would really appreciate if you can help me fix this. Thanks.

            ...

            ANSWER

            Answered 2020-Jul-24 at 07:08

            It seems that you're trying to connect to SP online. Please specify Version parameter then try it again.

            Source https://stackoverflow.com/questions/63056166

            QUESTION

            How to download list data from SharePoint Online to a csv (preferably) or json file?
            Asked 2020-Jun-24 at 03:29

            I have accessed a list in SharePoint Online with Python and want to save the list data to a file (csv or json) to transform it and sort some metadata for a migration

            I have full access to the Sharepoint site I am connecting(client ID, secret..).

            ...

            ANSWER

            Answered 2020-Jun-23 at 21:40

            Idea 1

            It's hard to tell what can go wrong without the error trace. But I suspect it's likely to do with malformed data that you are passing as the argument. See here from the documentation to know exactly what's expected.

            Do also consider updating your question with relevant stack error traces.

            Idea 2

            JSONDecodeError: Extra data: line 1 column 5 (char 4)

            This error simply means that the Json string is not a valid format. You can validate JSON strings by using this service. This often tells you the point of error which you can then use it to manually fix the problem.

            This error could also be caused if the object that is being parsed is a python object. You can avoid this by jsonifying each line as you go

            Source https://stackoverflow.com/questions/62537746

            QUESTION

            Django+SharePlum and Rich Text Fields in SharePoint
            Asked 2020-Jun-10 at 20:50

            Using Python with Django and accessing my SharePoint list via SharePlum.

            In SharePoint the description field is Rich Text. When I bring that into my template file using Django it is still showing tags. For example:

            ...

            ANSWER

            Answered 2020-Jun-10 at 20:50

            Found the answer. I went into SharePoint List Settings on Office 365 and changed it from Enhanced Rich Text to just Rich Text and it is showing properly now in my web app.

            That was a good enough answer for my needs.

            Source https://stackoverflow.com/questions/62304090

            QUESTION

            How to save a Sharepoint list as a file?
            Asked 2020-May-28 at 11:05

            I need to save a sharepoint list as an excel/ csv file. To do so, I have followed following two SO links,

            Get SharePoint List with Python

            SharePlum error : "Can't get User Info List"

            My code look like this,

            ...

            ANSWER

            Answered 2020-May-27 at 01:05

            Sample demo to use Office365-REST-Python-Client to get SharePoint list data and output as excel.

            Source https://stackoverflow.com/questions/61987493

            QUESTION

            File Download Using SharePlum for Sharepoint
            Asked 2020-May-27 at 02:02

            I am using SharePlum to work with Sharepoint files/folder operations. I am able to create a folder and uplaod files with Shareplum. But I am not able to download a file. The code runs without any problem. I am not sure where the file gets downloaded.

            ...

            ANSWER

            Answered 2020-May-27 at 02:02

            QUESTION

            Sharepoint file upload with API using Python
            Asked 2020-May-13 at 09:44

            What I want is uploading file to specific directory in the sharepoint via API and using python.

            Here is my code:

            ...

            ANSWER

            Answered 2020-May-13 at 09:44

            Please take a reference of below sample, i have tested it on my SPO environment.

            Source https://stackoverflow.com/questions/61745816

            QUESTION

            Upload file in SharePoint using python
            Asked 2020-Mar-27 at 10:56

            'm trying to upload a file using Python Script, when Run the code it gives me no Error but was not able to upload the file in my sharepoint folder.

            ...

            ANSWER

            Answered 2019-Nov-28 at 07:10

            Modify the code as below.

            Source https://stackoverflow.com/questions/59076032

            QUESTION

            Deploying a package created in Python 3.6 (Anaconda) in Python 2.7
            Asked 2019-Jun-29 at 01:14

            I have created a code to pull data from sharepoint and it works like charm on my local environment (Spyder Python 3.6). But when I try to deploy it on production environment (Python 2.7.12), it fails for a missing package cryptography. When I try to add cryptography from github to library of Python 2.7, it fails missing the file _constant_time. But when I try to copy library files from anaconda (python 3.6 ) to production (python 2.7), the _constant_time file is there but it now shows cannot import lib error.

            Why is there difference in files on github and anaconda for cryptography library and how to fix the issue? PS- I can't change the version of production from Python 2.7

            ...

            ANSWER

            Answered 2019-Jun-29 at 01:14

            The simple answer: Cryptography has several different builds between what your production server would recognize and what you tried to grab from Github (As an example, Anaconda has several 2.7.x build options of cryptography, 15 to be precise https://anaconda.org/anaconda/cryptography/files) which makes sense because you are trying to use two different Python languages and forcing them to interact but they don't understand each other.

            Think of your problem like this: Imagine trying to have a conversation in English (or any language for that matter) with someone from the 1800s - technically you two are speaking the same language but you wouldn't understand each other as over the course of two hundred years because the language has evolved in complexity and meaning. For reference, Python 2.7.0 was released in July 2010, Python 3.7 was released 2017.

            There is a hard way and a easier way to resolve this problem.

            The harder way is: Find the exact Python build of production server, download that 2.7.x version from Github or Anaconda. Then delete your current version of cryptography, install the compatible version of cryptography. Then make sure Anaconda recognizes the new branch, implement it your code and it should make it work on your production server. You will have to do some trial and error to get it right because other packages may have dependence issues with your older version of cryptography. Which given what you presented as your solution is what I believe you attempted.

            However, to avoid your current frustration, there is an easier way: build a virtual environment for Python 2.7.x on your machine that matches the production server.

            I would specifically use virtualenv, pip install your packages, then implement your code through it. That way your code and the production server use the same Python. I will add this small caveat: You may need to rewrite some of your code to make it work, because again, you built the code using the language of 2017, but you are conversing with the Python of 2010.

            I'll get you started down the path with how to setup it up below, but I highly recommend reading the Python.org virtual environment page to educate yourself for future development (there are numerous articles and reference guides as well out there but start with the source): (https://docs.python.org/3/tutorial/venv.html)

            To set up the virtual environment - pull up terminal and type the following below:

            Source https://stackoverflow.com/questions/56811410

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install shareplum

            You can install using 'pip install shareplum' or download it from GitHub, PyPI.
            You can use shareplum like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install SharePlum

          • CLONE
          • HTTPS

            https://github.com/jasonrollins/shareplum.git

          • CLI

            gh repo clone jasonrollins/shareplum

          • sshUrl

            git@github.com:jasonrollins/shareplum.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link