
GITHUB . COM {
}
Detected CMS Systems:
- Wordpress (2 occurrences)
Title:
Add encoding to `read_env_file()` ยท Issue #1615 ยท pydantic/pydantic
Description:
Feature Request Output of import pydantic.utils; print(pydantic.utils.version_info()): pydantic version: 1.5.1 pydantic compiled: True python version: 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)] platfor...
Website Age:
17 years and 8 months (reg. 2007-10-09).
Matching Content Categories {๐}
- Technology & Computing
- Telecommunications
- Mobile Technology & AI
Content Management System {๐}
What CMS is github.com built with?
Github.com relies on WORDPRESS.
Traffic Estimate {๐}
What is the average monthly size of github.com audience?
๐๐ Tremendous Traffic: 10M - 20M visitors per month
Based on our best estimate, this website will receive around 10,000,019 visitors per month in the current month.
However, some sources were not loaded, we suggest to reload the page to get complete results.
check SE Ranking
check Ahrefs
check Similarweb
check Ubersuggest
check Semrush
How Does Github.com Make Money? {๐ธ}
Subscription Packages {๐ณ}
We've located a dedicated page on github.com that might include details about subscription plans or recurring payments. We identified it based on the word pricing in one of its internal links. Below, you'll find additional estimates for its monthly recurring revenues.How Much Does Github.com Make? {๐ฐ}
Subscription Packages {๐ณ}
Prices on github.com are in US Dollars ($).
They range from $4.00/month to $21.00/month.
We estimate that the site has approximately 4,989,889 paying customers.
The estimated monthly recurring revenue (MRR) is $20,957,532.
The estimated annual recurring revenues (ARR) are $251,490,385.
Wordpress Themes and Plugins {๐จ}
What WordPress theme does this site use?
It is strange but we were not able to detect any theme on the page.
What WordPress plugins does this website use?
It is strange but we were not able to detect any plugins on the page.
Keywords {๐}
encoding, pydantic, issue, files, samuelcolvin, sign, erakli, dotenv, feature, request, class, added, prettywood, featsettings, custom, navigation, code, pull, requests, actions, security, add, readenvfile, closed, description, import, version, windows, config, utf, fooะปะธัั, commented, good, commit, references, github, type, projects, milestone, footer, skip, content, menu, product, solutions, resources, open, source, enterprise, pricing,
Topics {โ๏ธ}
samuelcolvin closed ['email-validator'] description prettywood added fc63b5c prettywood mentioned comment metadata assignees verified 0cee311 sign `dotenv` files python-dotenv ะปะธัั 1 foo import pydantic parse files default encoding fetch encoding custom encoding config class type projects pydantic version tags/v3 ัโบัััััโ 1 projects milestone milestone relationships env file github cyrillic windows pydantic utf-8 settings feat sign env' windows-7-6 windows skip jump read_env_file utils print version_info 7b3ab59 feb 25 2020 [msc 1916 64 bit amd64 installed problem cp1251 result function basesettings
Payment Methods {๐}
- Braintree
Questions {โ}
- Already have an account?
Schema {๐บ๏ธ}
DiscussionForumPosting:
context:https://schema.org
headline:Add encoding to `read_env_file()`
articleBody:# Feature Request
Output of `import pydantic.utils; print(pydantic.utils.version_info())`:
```
pydantic version: 1.5.1
pydantic compiled: True
python version: 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)]
platform: Windows-7-6.1.7601-SP1
optional deps. installed: ['email-validator']
```
## Description
Hi, there's known problem on Windows with parsing dotenv files - https://github.com/pypa/pipenv/issues/1963. `python-dotenv` would parse files with default encoding (cp1251 for Cyrillic Windows). As a result we get `ะ โบะ ัะกะะกโ 1` instead of `ะะธัั 1`.
It looks like [this](https://github.com/samuelcolvin/pydantic/blob/960b24a5aab7ae0631bfbfbe0047b4d8600c6012/pydantic/env_settings.py#L111) function need to fetch encoding from `Config` class somehow.
<!-- Where possible please include a self-contained code snippet describing your feature request: -->
## Example
`.env` file (UTF-8):
```
foo=ะะธัั 1
```
Code snippet:
```py
import pydantic
class Settings(pydantic.BaseSettings):
foo: str
class Config:
env_file_encoding = 'utf-8'
settings = Settings(_env_file='.env')
print(settings)
# foo='ะะธัั 1'
```
author:
url:https://github.com/erakli
type:Person
name:erakli
datePublished:2020-06-09T00:07:45.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:2
url:https://github.com/1615/pydantic/issues/1615
context:https://schema.org
headline:Add encoding to `read_env_file()`
articleBody:# Feature Request
Output of `import pydantic.utils; print(pydantic.utils.version_info())`:
```
pydantic version: 1.5.1
pydantic compiled: True
python version: 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit (AMD64)]
platform: Windows-7-6.1.7601-SP1
optional deps. installed: ['email-validator']
```
## Description
Hi, there's known problem on Windows with parsing dotenv files - https://github.com/pypa/pipenv/issues/1963. `python-dotenv` would parse files with default encoding (cp1251 for Cyrillic Windows). As a result we get `ะ โบะ ัะกะะกโ 1` instead of `ะะธัั 1`.
It looks like [this](https://github.com/samuelcolvin/pydantic/blob/960b24a5aab7ae0631bfbfbe0047b4d8600c6012/pydantic/env_settings.py#L111) function need to fetch encoding from `Config` class somehow.
<!-- Where possible please include a self-contained code snippet describing your feature request: -->
## Example
`.env` file (UTF-8):
```
foo=ะะธัั 1
```
Code snippet:
```py
import pydantic
class Settings(pydantic.BaseSettings):
foo: str
class Config:
env_file_encoding = 'utf-8'
settings = Settings(_env_file='.env')
print(settings)
# foo='ะะธัั 1'
```
author:
url:https://github.com/erakli
type:Person
name:erakli
datePublished:2020-06-09T00:07:45.000Z
interactionStatistic:
type:InteractionCounter
interactionType:https://schema.org/CommentAction
userInteractionCount:2
url:https://github.com/1615/pydantic/issues/1615
Person:
url:https://github.com/erakli
name:erakli
url:https://github.com/erakli
name:erakli
InteractionCounter:
interactionType:https://schema.org/CommentAction
userInteractionCount:2
interactionType:https://schema.org/CommentAction
userInteractionCount:2
External Links {๐}(2)
Analytics and Tracking {๐}
- Site Verification - Google
Libraries {๐}
- Clipboard.js
- D3.js
- Lodash
Emails and Hosting {โ๏ธ}
Mail Servers:
- aspmx.l.google.com
- alt1.aspmx.l.google.com
- alt2.aspmx.l.google.com
- alt3.aspmx.l.google.com
- alt4.aspmx.l.google.com
Name Servers:
- dns1.p08.nsone.net
- dns2.p08.nsone.net
- dns3.p08.nsone.net
- dns4.p08.nsone.net
- ns-1283.awsdns-32.org
- ns-1707.awsdns-21.co.uk
- ns-421.awsdns-52.com
- ns-520.awsdns-01.net