Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python-sharelatex
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.3.
Show more breadcrumbs
sed-rennes
sharelatex
python-sharelatex
Commits
8dfb098a
Verified
Commit
8dfb098a
authored
5 years ago
by
SIMONIN Matthieu
Browse files
Options
Downloads
Patches
Plain Diff
Remove pyyaml dependency
Fix
#11
parent
f4294da2
No related branches found
No related tags found
1 merge request
!8
Remove pyyaml dependency
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
setup.cfg
+0
-1
0 additions, 1 deletion
setup.cfg
sharelatex/__init__.py
+0
-33
0 additions, 33 deletions
sharelatex/__init__.py
with
0 additions
and
34 deletions
setup.cfg
+
0
−
1
View file @
8dfb098a
...
...
@@ -25,7 +25,6 @@ setup_requires =
wheel>=0.31.0
install_requires
=
socketIO-client
=
=0.5.7.4
pyyaml>=3.13.0
click~=
7.0
GitPython~=2.1.13
filetype~=1.0.5
...
...
This diff is collapsed.
Click to expand it.
sharelatex/__init__.py
+
0
−
33
View file @
8dfb098a
...
...
@@ -12,7 +12,6 @@ import zipfile
import
filetype
from
socketIO_client
import
SocketIO
,
BaseNamespace
import
yaml
logger
=
logging
.
getLogger
(
__name__
)
...
...
@@ -166,38 +165,6 @@ class SyncClient:
self
.
login_data
.
pop
(
"
password
"
)
self
.
sharelatex_sid
=
_r
.
cookies
[
"
sharelatex.sid
"
]
@classmethod
def
from_yaml
(
cls
,
*
,
filepath
=
None
):
"""
Instantiate a new client from a configuration yaml file.
Note:
The yaml dictionnary is injected as kwargs of init method.
Examples:
.. code:: bash
# from your shell
echo
'
username: MYLOGIN
password: MYPASSWORD
'
> ~/.sharelatex.yaml
# from python
client = SyncClient.from_yaml()
Args:
filepath (str): Path to the configuration file
Returns:
A newly created instance of the client.
"""
if
not
filepath
:
filepath
=
Path
(
os
.
environ
.
get
(
"
HOME
"
),
"
.sharelatex.yaml
"
)
with
open
(
filepath
,
"
r
"
)
as
f
:
conf
=
yaml
.
load
(
f
,
Loader
=
yaml
.
BaseLoader
)
return
cls
(
**
conf
)
def
get_project_data
(
self
,
project_id
):
"""
Get the project hierarchy and some metadata.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment