Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lofar_uvw_generator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VirtualObservatory
lofar_uvw_generator
Commits
09604a3f
Commit
09604a3f
authored
3 years ago
by
Mattia Mancini
Browse files
Options
Downloads
Patches
Plain Diff
Add support for special characters in passwords
parent
ef5118a7
No related branches found
No related tags found
3 merge requests
!4
Add lofarquery lta
,
!3
Add lofarquery lta
,
!2
Add lofarquery lta
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lofarquery_lta.py
+3
-1
3 additions, 1 deletion
lofarquery_lta.py
with
3 additions
and
1 deletion
lofarquery_lta.py
+
3
−
1
View file @
09604a3f
...
...
@@ -4,6 +4,7 @@ from configparser import ConfigParser
import
logging
import
os.path
,
os
from
typing
import
*
import
urllib.parse
import
pandas
CONNECTION_STRING
=
'
oracle+cx_oracle://{user}:{password}@db.lofar.target.rug.nl/?service_name=db.lofar.target.rug.nl
'
...
...
@@ -51,7 +52,8 @@ def parse_args():
def
create_db_engine
(
user
:
str
,
password
:
str
):
connection_string
:
str
=
CONNECTION_STRING
.
format
(
user
=
user
,
password
=
password
)
connection_string
:
str
=
CONNECTION_STRING
.
format
(
user
=
urllib
.
parse
.
quote_plus
(
user
),
password
=
urllib
.
parse
.
quote_plus
(
password
))
return
create_engine
(
connection_string
)
...
...
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