Comments (3)
Have you considered using asdict()
instead of pickling?
https://python-gitlab.readthedocs.io/en/main/api-usage.html#as-a-dictionary
Regarding the pickling:
As a note, if on each Project
object you did project.manager.gitlab.private_token = "*masked*"
before pickling, that would get rid of the token most likely.
But I have no idea how that will impact things when unpickling.
You can look at the pickle file with: python -m pickletools projects.pickle
from python-gitlab.
Hi @JohnVillalovos, that does sound like a much better approach— it looks like it should be possible to then later do Project(attrs=that_dict, lazy=True)
? Or maybe this should go through the GitLab object's ProjectManager
somehow? Is there a demonstration of that?
from python-gitlab.
Sorry, you are in uncharted territory on that. So I'm not sure.
from python-gitlab.
Related Issues (20)
- Support /projects/:id/job_token_scope/allowlist
- creating group runner fails with 403 HOT 1
- Add possibility to rotate personal tokens via CLI
- Allow to get only 1 branch without using repository/branches HOT 3
- Exclusive arguments not allowed in CLI
- Available project integrations not callable from the CLI HOT 1
- Basic Authentication via .netrc does not work HOT 12
- Get file LFS HOT 3
- job.refresh() doesn't exist but is needed (hacky fix included) HOT 4
- project-merge-request-approval-state argument handling
- Missing parameters in iteration search HOT 2
- Calling list() with Iterator leads to warnings HOT 1
- refs call of commit causes wrong warning HOT 6
- member_roles endpoint is not implemented HOT 2
- Cannot remove or update project avatars HOT 1
- Wrong type on `job.trace()`? HOT 3
- Missing `latest()` method on `ProjectPipelineManager` HOT 4
- Support group-level service-accounts
- Add group.shared_with_groups.list() HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-gitlab.