diff --git a/caotek_mesavoirs.egg-info/PKG-INFO b/caotek_mesavoirs.egg-info/PKG-INFO index f580e92..d7ad938 100644 --- a/caotek_mesavoirs.egg-info/PKG-INFO +++ b/caotek_mesavoirs.egg-info/PKG-INFO @@ -2,69 +2,10 @@ Metadata-Version: 2.1 Name: caotek-mesavoirs Version: 0.1 Summary: caotek_mesavoirs -Home-page: UNKNOWN +Home-page: Author: Author-email: License: UNKNOWN -Description: # README # - - Cette application permet de : - - 1. faire le suivi des actifs financiers : actions, ETF, obligations (assurances-vie), livrets - 2. compararer les écarts avec une allocation cible - - Elle est développée avec les composants open source suivants : - - ## Backend - - - [Python](https://www.python.org/downloads/) 3.7 - - [Pyramid web framework](https://trypyramid.com/) 1.10 - - [MySQL server](https://mysql.com/) 5.7 sur Debian GNU/Linux 9 (stretch) - - [Apache web server](https://apache.org/) 2.4 sur Debian GNU/Linux 9 (stretch) - - ## Frontend - - - [Bootstrap framework](https://getbootstrap.com/) for CSS 3.3.7 - - [Jquery](https://jquery.com/download/) for JavaScript 3.2.1 - - Chameleon templates - - [FormValidation](https://formvalidation.io/) form validator 0.7.0 - - ## Jquery Plugins - - - [DataTables](https://datatables.net/) 1.10.20 - - [less.js](http://lesscss.org/) 3.11.1 - - [moment.js](https://momentjs.com/) with-locales.min.js - - [Google Charts](https://developers.google.com/chart) - - - [Learn Markdown](https://bitbucket.org/tutorials/markdowndemo) - - - - 0.0 - --- - - - Initial version - - - - >>> quote.info - {'language': 'en-US', 'region': 'US', 'quoteType': 'ETF', 'quoteSourceName': 'Delayed Quote', 'currency': 'USD', 'regularMarketChange': -0.5200043, - 'regularMarketOpen': 93.81, 'regularMarketDayHigh': 93.91, 'regularMarketDayLow': 92.44, 'regularMarketVolume': 4040066, 'askSize': 14, - 'messageBoardId': 'finmb_22939711', 'fullExchangeName': 'NYSEArca', 'longName': 'Vanguard Real Estate Index Fund ETF Shares', - 'financialCurrency': 'USD', 'averageDailyVolume3Month': 4826021, 'averageDailyVolume10Day': 4604087, 'fiftyTwoWeekLowChange': 22.009995, - 'fiftyTwoWeekLowChangePercent': 0.30965102, 'fiftyTwoWeekRange': '71.08 - 94.07', 'fiftyTwoWeekHighChange': -0.98000336, - 'fiftyTwoWeekHighChangePercent': -0.01041781, 'fiftyTwoWeekLow': 71.08, 'fiftyTwoWeekHigh': 94.07, 'esgPopulated': False, 'tradeable': True, - 'trailingAnnualDividendRate': 3.533, 'trailingPE': 8.381201, 'trailingAnnualDividendYield': 0.037741695, 'ytdReturn': 25.76, - 'trailingThreeMonthReturns': 7.14, 'trailingThreeMonthNavReturns': 7.21, 'epsTrailingTwelveMonths': 11.107, 'marketState': 'CLOSED', - 'postMarketChangePercent': 0.042970154, 'postMarketTime': 1569618175, 'postMarketPrice': 93.13, 'postMarketChange': 0.040000916, - 'regularMarketChangePercent': -0.55550075, 'regularMarketDayRange': '92.44 - 93.91', 'regularMarketPreviousClose': 93.61, 'bid': 93.03, - 'ask': 93.13, 'bidSize': 11, 'exchange': 'PCX', 'shortName': 'Vanguard Real Estate ETF', 'exchangeDataDelayedBy': 0, 'priceHint': 2, - 'sharesOutstanding': 370180992, 'bookValue': 63.751, 'fiftyDayAverage': 92.157425, 'fiftyDayAverageChange': 0.9325714, - 'fiftyDayAverageChangePercent': 0.01011933, 'twoHundredDayAverage': 88.83857, 'twoHundredDayAverageChange': 4.2514267, - 'twoHundredDayAverageChangePercent': 0.04785564, 'marketCap': 34460147712, 'priceToBook': 1.4602123, 'sourceInterval': 15, - 'exchangeTimezoneName': 'America/New_York', 'exchangeTimezoneShortName': 'EDT', 'gmtOffSetMilliseconds': -14400000, 'triggerable': False, - 'market': 'us_market', 'regularMarketPrice': 93.09, 'regularMarketTime': 1569614400, 'symbol': 'VNQ'} Keywords: web wsgi bfg pylons pyramid Platform: UNKNOWN Classifier: Programming Language :: Python @@ -72,3 +13,64 @@ Classifier: Framework :: Pyramid Classifier: Topic :: Internet :: WWW/HTTP Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application Provides-Extra: testing + +# README # + +Cette application permet de : + +1. faire le suivi des actifs financiers : actions, ETF, obligations (assurances-vie), livrets +2. compararer les écarts avec une allocation cible + +Elle est développée avec les composants open source suivants : + +## Backend + +- [Python](https://www.python.org/downloads/) 3.7 +- [Pyramid web framework](https://trypyramid.com/) 1.10 +- [MySQL server](https://mysql.com/) 5.7 sur Debian GNU/Linux 9 (stretch) +- [Apache web server](https://apache.org/) 2.4 sur Debian GNU/Linux 9 (stretch) + +## Frontend + +- [Bootstrap framework](https://getbootstrap.com/) for CSS 3.3.7 +- [Jquery](https://jquery.com/download/) for JavaScript 3.2.1 +- Chameleon templates +- [FormValidation](https://formvalidation.io/) form validator 0.7.0 + +## Jquery Plugins + +- [DataTables](https://datatables.net/) 1.10.20 +- [less.js](http://lesscss.org/) 3.11.1 +- [moment.js](https://momentjs.com/) with-locales.min.js +- [Google Charts](https://developers.google.com/chart) + + +[Learn Markdown](https://bitbucket.org/tutorials/markdowndemo) + + + +0.0 +--- + +- Initial version + + + +>>> quote.info +{'language': 'en-US', 'region': 'US', 'quoteType': 'ETF', 'quoteSourceName': 'Delayed Quote', 'currency': 'USD', 'regularMarketChange': -0.5200043, +'regularMarketOpen': 93.81, 'regularMarketDayHigh': 93.91, 'regularMarketDayLow': 92.44, 'regularMarketVolume': 4040066, 'askSize': 14, +'messageBoardId': 'finmb_22939711', 'fullExchangeName': 'NYSEArca', 'longName': 'Vanguard Real Estate Index Fund ETF Shares', +'financialCurrency': 'USD', 'averageDailyVolume3Month': 4826021, 'averageDailyVolume10Day': 4604087, 'fiftyTwoWeekLowChange': 22.009995, +'fiftyTwoWeekLowChangePercent': 0.30965102, 'fiftyTwoWeekRange': '71.08 - 94.07', 'fiftyTwoWeekHighChange': -0.98000336, +'fiftyTwoWeekHighChangePercent': -0.01041781, 'fiftyTwoWeekLow': 71.08, 'fiftyTwoWeekHigh': 94.07, 'esgPopulated': False, 'tradeable': True, +'trailingAnnualDividendRate': 3.533, 'trailingPE': 8.381201, 'trailingAnnualDividendYield': 0.037741695, 'ytdReturn': 25.76, +'trailingThreeMonthReturns': 7.14, 'trailingThreeMonthNavReturns': 7.21, 'epsTrailingTwelveMonths': 11.107, 'marketState': 'CLOSED', +'postMarketChangePercent': 0.042970154, 'postMarketTime': 1569618175, 'postMarketPrice': 93.13, 'postMarketChange': 0.040000916, +'regularMarketChangePercent': -0.55550075, 'regularMarketDayRange': '92.44 - 93.91', 'regularMarketPreviousClose': 93.61, 'bid': 93.03, +'ask': 93.13, 'bidSize': 11, 'exchange': 'PCX', 'shortName': 'Vanguard Real Estate ETF', 'exchangeDataDelayedBy': 0, 'priceHint': 2, +'sharesOutstanding': 370180992, 'bookValue': 63.751, 'fiftyDayAverage': 92.157425, 'fiftyDayAverageChange': 0.9325714, +'fiftyDayAverageChangePercent': 0.01011933, 'twoHundredDayAverage': 88.83857, 'twoHundredDayAverageChange': 4.2514267, +'twoHundredDayAverageChangePercent': 0.04785564, 'marketCap': 34460147712, 'priceToBook': 1.4602123, 'sourceInterval': 15, +'exchangeTimezoneName': 'America/New_York', 'exchangeTimezoneShortName': 'EDT', 'gmtOffSetMilliseconds': -14400000, 'triggerable': False, +'market': 'us_market', 'regularMarketPrice': 93.09, 'regularMarketTime': 1569614400, 'symbol': 'VNQ'} + diff --git a/caotek_mesavoirs.egg-info/entry_points.txt b/caotek_mesavoirs.egg-info/entry_points.txt index 1ba095c..4f15cc4 100644 --- a/caotek_mesavoirs.egg-info/entry_points.txt +++ b/caotek_mesavoirs.egg-info/entry_points.txt @@ -1,4 +1,2 @@ - [paste.app_factory] - main = caotek_mesavoirs:main - [console_scripts] - \ No newline at end of file +[paste.app_factory] +main = caotek_mesavoirs:main diff --git a/caotek_mesavoirs.egg-info/requires.txt b/caotek_mesavoirs.egg-info/requires.txt index fb54a6f..3548f89 100644 --- a/caotek_mesavoirs.egg-info/requires.txt +++ b/caotek_mesavoirs.egg-info/requires.txt @@ -7,11 +7,11 @@ pyramid_retry pyramid_tm SQLAlchemy transaction -zope.sqlalchemy +zope.sqlalchemy==1.1 waitress mysqlclient yfinance -markdown2 +markdown [testing] WebTest>=1.3.1 diff --git a/caotek_mesavoirs/views/contents.py b/caotek_mesavoirs/views/contents.py index a0edd06..52dab33 100644 --- a/caotek_mesavoirs/views/contents.py +++ b/caotek_mesavoirs/views/contents.py @@ -161,10 +161,9 @@ def doc_view(request): # insèrer le path de static/img texte = doc.texte.replace('static/img/', "%s/static/img/" % request.application_url) - # convertir mardown en HTML - from markdown2 import Markdown - markdowner = Markdown() - texte = markdowner.convert(texte) + # convertir markdown en HTML + import markdown + texte = markdown.markdown(texte) return { 'page_title': doc.intitule, diff --git a/setup.py b/setup.py index a40bb00..5d35e30 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ requires = [ 'waitress', 'mysqlclient', 'yfinance', - 'markdown2', + 'markdown', ] tests_require = [