Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
Site-Tag-Parser
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
kiran.ak
Site-Tag-Parser
Commits
0418519d
Commit
0418519d
authored
Feb 08, 2021
by
kiran.ak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial commit
parents
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
+29
-0
configuration.py
configuration.py
+20
-0
database.conf
database.conf
+9
-0
tagParser.py
tagParser.py
+0
-0
No files found.
configuration.py
0 → 100644
View file @
0418519d
import
configparser
import
logging
config
=
configparser
.
ConfigParser
()
config
.
read
(
'database.conf'
)
db_url
=
config
[
'DB'
][
'db_url'
]
or
'localhost'
port
=
int
(
config
[
'DB'
][
'port'
])
or
27017
db_name
=
config
[
'DB'
][
'database_name'
]
if
db_name
==
''
:
logging
.
critical
(
'Database Name empty.'
)
collection_name
=
config
[
'DB'
][
'collection_name'
]
if
collection_name
==
''
:
logging
.
critical
(
'Collection Name empty.'
)
site_id
=
config
[
'SITE'
][
'site_id'
]
if
site_id
==
''
:
logging
.
critical
(
'Site id empty.'
)
database.conf
0 → 100644
View file @
0418519d
[
DB
]
db_url
=
192
.
168
.
0
.
220
port
=
2717
database_name
=
ilens_configuration
collection_name
=
site_conf
[
SITE
]
site_id
=
site_142
\ No newline at end of file
tagParser.py
0 → 100644
View file @
0418519d
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment