def edit(self, **kwargs):
part = '<STR_LIT>' % (self.key, urlencode(kwargs))<EOL>self._server.query(part, method=self._server._session.put)<EOL>for s in self._server.library.sections():<EOL><INDENT>if s.key == self.key:<EOL><INDENT>return s<EOL><DEDENT><DEDENT>
Edit a library (Note: agent is required). See :class:`~plexapi.library.Library` for example usage.

            Parameters:
                kwargs (dict): Dict of settings to edit.