-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ddbb142
commit 328db83
Showing
6 changed files
with
48 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM alpine:3.18.6 | ||
|
||
RUN mkdir pythonExample | ||
|
||
WORKDIR /pythonExample | ||
|
||
COPY requirements.txt . | ||
COPY pythonExample/* pythonExample/ | ||
|
||
CMD ["pythonExample/pythonProj.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
pi_key = "2VTHzn1mKZ/n9apD5P6nxsajSQh8QhmyyKvUIRoZWAHCB8lSbBm3YWx5nOdZ1zPEOaA0zIZy1eFgHgfB2HkfAdVrbQj19kagXDVe" | ||
password=123passwrd123 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/python | ||
|
||
# Function definition is here | ||
def printme( str ): | ||
# This prints a passed string into this function | ||
print (str) | ||
return; | ||
|
||
from project import db, app | ||
from Cryptodome.Cipher import ARC4 | ||
import hashlib | ||
|
||
def arc4_encrypt_password(key, password): | ||
cipher = ARC4.new(key.encode('utf-8')) | ||
encrypted_password = cipher.encrypt(password.encode('utf-8')) | ||
return hashlib.md5(encrypted_password).hexdigest() | ||
|
||
# Now you can call printme function | ||
printme("Hello from JFROG"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
PyYAML>3.11 | ||
nltk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/usr/bin/env python | ||
|
||
from setuptools import setup | ||
|
||
setup( | ||
name='jfrog-python-example', | ||
version='1.0', | ||
description='Project example for building Python project with JFrog products', | ||
author='JFrog', | ||
author_email='jfrog@jfrog.com', | ||
url='https://github.com/carmithersh/carmit-testing', | ||
packages=['pythonExample'], | ||
install_requires=['PyYAML>3.11', 'nltk'], | ||
) |